diff --git a/tests/unit/framework/i18n/FallbackMessageFormatterTest.php b/tests/unit/framework/i18n/FallbackMessageFormatterTest.php index 146a81e73c..5e9780cabb 100644 --- a/tests/unit/framework/i18n/FallbackMessageFormatterTest.php +++ b/tests/unit/framework/i18n/FallbackMessageFormatterTest.php @@ -160,6 +160,14 @@ _MSG_ $result = $formatter->fallbackFormat($pattern, [], 'en-US'); $this->assertEquals($pattern, $result, $formatter->getErrorMessage()); } + + public function testGridViewMessage() + { + $pattern = 'Showing {begin, number}-{end, number} of {totalCount, number} {totalCount, plural, one{item} other{items}}.'; + $formatter = new FallbackMessageFormatter(); + $result = $formatter->fallbackFormat($pattern, ['begin' => 1, 'end' => 5, 'totalCount' => 10], 'en-US'); + $this->assertEquals('Showing 1-5 of 10 items.', $result); + } } class FallbackMessageFormatter extends MessageFormatter