Conditions | 2 |
Paths | 2 |
Total Lines | 13 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 6 |
Changes | 0 |
1 | <?php |
||
23 | public function testContentToCatalogue() |
||
24 | { |
||
25 | if (Kernel::VERSION_ID < 20800) { |
||
26 | $this->markTestSkipped('Symfony <2.8 is not supported. '); |
||
27 | } |
||
28 | |||
29 | $content = file_get_contents(__DIR__.'/messages.en.xlf'); |
||
30 | $catalogue = XliffConverter::contentToCatalogue($content, 'en', 'messages'); |
||
31 | |||
32 | $this->assertEquals('en', $catalogue->getLocale()); |
||
33 | $this->assertEquals(['messages'], $catalogue->getDomains()); |
||
34 | $this->assertCount(2, $catalogue->all('messages')); |
||
35 | } |
||
36 | |||
46 |