/** * Test consistent normalization of translation files on disk. This tests not * only the functionality of ExtendedIniNormalizer but also the integrity of * the language files themselves. * * @return void */ public function testLanguageFileIntegrity() { $normalizer = new ExtendedIniNormalizer(); $langDir = realpath(__DIR__ . '/../../../../../../../languages'); $handle = opendir($langDir); while ($file = readdir($handle)) { if (substr($file, -4) == '.ini') { $full = $langDir . '/' . $file; $this->assertEquals($normalizer->normalizeFileToString($full), file_get_contents($full), $file); } } closedir($handle); }