@@ -388,15 +388,19 @@ public function testTwig()
388388 $ this ->assertCount ($ countHeaders , $ translations ->getHeaders ());
389389 $ this ->assertEquals (0 , $ translations ->countTranslated ());
390390
391- $ this ->assertContent ($ translations , 'twig/Po ' );
391+ //Ignored in php5 because the line numbers doesn't match due different version of twig
392+ if (PHP_MAJOR_VERSION >= 7 ) {
393+ $ this ->assertContent ($ translations , 'twig/Po ' );
394+ $ this ->assertContent ($ translations , 'twig/Xliff ' );
395+ }
396+
392397 $ this ->assertContent ($ translations , 'twig/Mo ' );
393398 $ this ->assertContent ($ translations , 'twig/PhpArray ' );
394399 $ this ->assertContent ($ translations , 'twig/Jed ' );
395400 $ this ->assertContent ($ translations , 'twig/Json ' );
396401 $ this ->assertContent ($ translations , 'twig/JsonDictionary ' );
397402 $ this ->assertContent ($ translations , 'twig/Csv ' );
398403 $ this ->assertContent ($ translations , 'twig/CsvDictionary ' );
399- $ this ->assertContent ($ translations , 'twig/Xliff ' );
400404 $ this ->assertContent ($ translations , 'twig/Yaml ' );
401405 $ this ->assertContent ($ translations , 'twig/YamlDictionary ' );
402406
0 commit comments