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 2fc81ef commit f94b3e1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/VariationSequence.php → src/GlyphVariation.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

namespace Cog\Unicode;

final class VariationSequence
final class GlyphVariation
{
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\VariationSequence;
use Cog\Unicode\GlyphVariation;
use PHPUnit\Framework\TestCase;

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

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

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

$characters = '';

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

public static function provideUnicodeMap(): array
Expand Down

0 comments on commit f94b3e1

Please sign in to comment.