diff --git a/packages/formatter/src/FormatterTest.php b/packages/formatter/src/FormatterTest.php index 206463b8..186182d2 100644 --- a/packages/formatter/src/FormatterTest.php +++ b/packages/formatter/src/FormatterTest.php @@ -21,6 +21,7 @@ use PHPUnit\Framework\Attributes\CoversClass; use function pow; +use function rtrim; use function str_replace; use const PHP_INT_MAX; @@ -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 {