Improve unit test for translation files

This commit is contained in:
Frederic Guillot
2016-11-06 11:41:32 -05:00
parent 3cde9dd877
commit f758ddfc5e
2 changed files with 6 additions and 12 deletions

View File

@@ -10,13 +10,7 @@ class LocaleTest extends Base
$locale = require($file . '/translations.php');
foreach ($locale as $k => $v) {
if (strpos($k, '%B %e, %Y') !== false) {
continue;
}
if (strpos($k, '%b %e, %Y') !== false) {
continue;
}
$this->assertNotEmpty($v, 'Empty value for the key "'.$k.'" in translation '.basename($file));
foreach (array('%s', '%d') as $placeholder) {
$this->assertEquals(