summaryrefslogtreecommitdiff
path: root/tests/units
diff options
context:
space:
mode:
Diffstat (limited to 'tests/units')
-rw-r--r--tests/units/LocaleTest.php24
1 files changed, 14 insertions, 10 deletions
diff --git a/tests/units/LocaleTest.php b/tests/units/LocaleTest.php
index 7f8dd7c9..5e15a4eb 100644
--- a/tests/units/LocaleTest.php
+++ b/tests/units/LocaleTest.php
@@ -6,21 +6,25 @@ class LocaleTest extends Base
{
public function testLocales()
{
- foreach(glob('app/Locale/*') as $l)
- {
- $locale = require($l . '/translations.php');
- foreach($locale as $k => $v)
- {
- if(strpos($k,'%B %e, %Y') !== false)
+ foreach(glob('app/Locale/*') as $file) {
+
+ $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)
+ }
+
+ if (strpos($k,'%b %e, %Y') !== false) {
continue;
- foreach(array('%s', '%d') as $placeholder)
- {
+ }
+
+ foreach(array('%s', '%d') as $placeholder) {
$this->assertEquals(
substr_count($k, '%s'),
substr_count($v, '%s'),
- 'Incorrect number of ' . $placeholder . ' in ' . basename($l) .' translation of: ' . $k
+ 'Incorrect number of ' . $placeholder . ' in ' . basename($file) .' translation of: ' . $k
);
}
}