diff --git a/tests/MoFilesTest.php b/tests/MoFilesTest.php index 76ed2e4..cd92519 100644 --- a/tests/MoFilesTest.php +++ b/tests/MoFilesTest.php @@ -34,7 +34,7 @@ public function testMoFilePlurals($filename) { $parser = new PhpMyAdmin\MoTranslator\Translator($filename); $expected_2 = '%d sekundy'; - if (strpos($filename, 'plurals.mo') !== false) { + if (strpos($filename, 'plurals.mo') !== false || strpos($filename, 'noheader.mo') !== false) { $expected_0 = '%d sekundy'; } elseif (strpos($filename, 'invalid-formula.mo') !== false) { $expected_0 = '%d sekunda'; diff --git a/tests/data/noheader.mo b/tests/data/noheader.mo new file mode 100644 index 0000000..599315c Binary files /dev/null and b/tests/data/noheader.mo differ