Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 2 | ||
Bugs | 1 | Features | 0 |
1 | <?php |
||
13 | public function testSimpleMessageFormatter(): void |
||
14 | { |
||
15 | $container = $this->createContainer(); |
||
16 | |||
17 | /** @var CategorySource $translationCategorySource */ |
||
18 | $translationCategorySource = $container->get('[email protected]')[0]; |
||
19 | $message = '{n, selectordinal, one{#-one} two{#-two} few{#-few} other{#-other}}'; |
||
20 | // The default formatter argument is ignored in favor of formatter set in config. |
||
21 | $this->assertSame( |
||
22 | '1', |
||
23 | $translationCategorySource->format($message, ['n' => 1], 'en', new SimpleMessageFormatter()), |
||
24 | ); |
||
27 |