Skip to content

Commit

Permalink
Better naming
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkomarev committed Oct 14, 2023
1 parent 36ecdc1 commit 3875f63
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/GlyphVariation.php → src/CompositeCharacter.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Cog\Unicode;

final class GlyphVariation
final class CompositeCharacter
{
private array $codePointList;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,20 @@

namespace Test\Unit\Cog\Unicode;

use Cog\Unicode\GlyphVariation;
use Cog\Unicode\CompositeCharacter;
use PHPUnit\Framework\TestCase;

final class GlyphVariationTest extends TestCase
final class CompositeCharacterTest extends TestCase
{
/** @dataProvider provideUnicodeMap */
public function testItCanInstantiateOfCharacters(
string $characters
): void {
$glyphVariation = GlyphVariation::ofCharacters($characters);
$compositeCharacter = CompositeCharacter::ofCharacters($characters);

$this->assertSame(
$characters,
$glyphVariation->toCharacters(),
$compositeCharacter->toCharacters(),
);
}

Expand All @@ -27,7 +27,7 @@ public function testItCannotInstantiateOfCharactersWithEmptyString(): void

$characters = '';

GlyphVariation::ofCharacters($characters);
CompositeCharacter::ofCharacters($characters);
}

public static function provideUnicodeMap(): array
Expand Down

0 comments on commit 3875f63

Please sign in to comment.