$v) { if (strpos($k, '%B %e, %Y') !== false) { continue; } if (strpos($k, '%b %e, %Y') !== false) { continue; } foreach (array('%s', '%d') as $placeholder) { $this->assertEquals( substr_count($k, $placeholder), substr_count($v, $placeholder), 'Incorrect number of ' . $placeholder . ' in ' . basename($file) .' translation of: ' . $k ); } } } } }