From 5c0405e568fbf524612ff96538fc14581b340d3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michal=20=C4=8Ciha=C5=99?= Date: Tue, 23 May 2017 08:48:28 +0200 Subject: [PATCH] Add test for #14 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Čihař --- tests/MoFilesTest.php | 2 +- tests/data/noheader.mo | Bin 0 -> 190 bytes 2 files changed, 1 insertion(+), 1 deletion(-) create mode 100644 tests/data/noheader.mo 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 0000000000000000000000000000000000000000..599315c926bfcc305d1115404581a11863b3c0a7 GIT binary patch literal 190 zcmca7#4?ou2$+Fb28d07m=%b9fLH{G6M&cvh)aPO#IFHjc_5w$#4JF(5s2A=cpDId z%m4uqI5+yPK literal 0 HcmV?d00001