Correct LocaleUnitTest to actually check the number of %d placeholders are correct.

This commit is contained in:
Colin Williams 2015-06-20 07:43:09 +01:00
parent 73c47d9461
commit 7056d14c95
1 changed files with 2 additions and 2 deletions

View File

@ -22,8 +22,8 @@ class LocaleTest extends Base
foreach(array('%s', '%d') as $placeholder) {
$this->assertEquals(
substr_count($k, '%s'),
substr_count($v, '%s'),
substr_count($k, $placeholder),
substr_count($v, $placeholder),
'Incorrect number of ' . $placeholder . ' in ' . basename($file) .' translation of: ' . $k
);
}