Total Complexity | 3 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 6 | ||
Bugs | 1 | Features | 2 |
1 | <?php |
||
19 | class LocaleTest extends BaseTest |
||
20 | { |
||
21 | public function testRenderEn(): void |
||
22 | { |
||
23 | $app = $this->makeApp(); |
||
24 | |||
25 | $out = $app->get(ViewsInterface::class)->render('custom:locale'); |
||
26 | $this->assertSame('Hello English!', $out); |
||
27 | } |
||
28 | |||
29 | public function testRenderRu(): void |
||
30 | { |
||
31 | $app = $this->makeApp(); |
||
32 | |||
33 | $app->get(TranslatorInterface::class)->setLocale('ru'); |
||
34 | |||
35 | $out = $app->get(ViewsInterface::class)->render('custom:locale'); |
||
36 | $this->assertSame('Hello Мир!', $out); |
||
37 | } |
||
38 | |||
39 | public function testLocaleDependency(): void |
||
50 | } |
||
51 | } |
||
52 |