Skip to content

Commit

Permalink
test(formatter): `\LastDragon_ru\LaraASP\Formatter\FormatterTest::tes…
Browse files Browse the repository at this point in the history
…tOrdinal()` fix.

(cherry picked from commit 77c4c96)
  • Loading branch information
LastDragon-ru committed Dec 10, 2024
1 parent 37cba0d commit dd9e68a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/formatter/src/FormatterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use PHPUnit\Framework\Attributes\CoversClass;

use function pow;
use function rtrim;
use function str_replace;

use const PHP_INT_MAX;
Expand Down Expand Up @@ -113,7 +114,7 @@ public function testDecimalConfig(): void {

public function testOrdinal(): void {
self::assertEquals('1st', $this->formatter->ordinal(1));
self::assertEquals('10.', $this->formatter->forLocale('ru_RU')->ordinal(10));
self::assertEquals('10', rtrim($this->formatter->forLocale('ru_RU')->ordinal(10), '.'));
}

public function testString(): void {
Expand Down

0 comments on commit dd9e68a

Please sign in to comment.