From d9805b798f7144d7b1180d618da995846f5bc725 Mon Sep 17 00:00:00 2001 From: Claudio Zizza Date: Tue, 7 Jan 2025 22:43:12 +0100 Subject: [PATCH] Remove duplicate assert for already existing formatter time_short uses the same formatter as date_short but causes tests to fail because of different white spaces --- tests/FactoryTest.php | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/FactoryTest.php b/tests/FactoryTest.php index 796f910..f8d1146 100644 --- a/tests/FactoryTest.php +++ b/tests/FactoryTest.php @@ -57,7 +57,6 @@ private function assertFormats(IntlFormatInterface $intlFormat): void self::assertSame('I got 1,002.2500 as average value', $intlFormat->format('I got %.4number as average value', 1002.25)); self::assertSame('I got 01,002.2500 as average value', $intlFormat->format('I got %011.4number as average value', 1002.25)); self::assertSame('I got 1,002.3 as average value', $intlFormat->format('I got %.1number_halfway_up as average value', 1002.25)); - self::assertSame('I is 5:30 AM on my clock.', $intlFormat->format('I is %time_short on my clock.', $date)); self::assertSame('The timezone id is US/Arizona.', $intlFormat->format('The timezone id is %timezone_id.', $date)); self::assertSame('I am from Italy.', $intlFormat->format('I am from %region.', 'it_IT')); self::assertSame('You have 10$.', $intlFormat->format('You have 10%currency_symbol.', '')); @@ -78,7 +77,6 @@ public function testSprintF(): void self::assertSame('I got 1,002.2500 as average value', sprintf('I got %.4number as average value', 1002.25)); self::assertSame('I got 01,002.2500 as average value', sprintf('I got %011.4number as average value', 1002.25)); self::assertSame('I got 1,002.3 as average value', sprintf('I got %.1number_halfway_up as average value', 1002.25)); - self::assertSame('I is 5:30 AM on my clock.', sprintf('I is %time_short on my clock.', $date)); self::assertSame('The timezone id is US/Arizona.', sprintf('The timezone id is %timezone_id.', $date)); self::assertSame('I am from Italy.', sprintf('I am from %region.', 'it_IT')); self::assertSame('You have 10$.', sprintf('You have 10%currency_symbol.', ''));