Skip to content

Commit

Permalink
Add test for #14
Browse files Browse the repository at this point in the history
Signed-off-by: Michal Čihař <[email protected]>
  • Loading branch information
nijel committed May 23, 2017
1 parent 83b74d8 commit 5c0405e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/MoFilesTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
Binary file added tests/data/noheader.mo
Binary file not shown.

0 comments on commit 5c0405e

Please sign in to comment.