function CoderUpgrade6xTest::testUpgrade6xFormatPlural in Coder 6.2
Same name and namespace in other branches
- 6 tests/coder_6x.test \CoderUpgrade6xTest::testUpgrade6xFormatPlural()
File
- tests/
coder_6x.test, line 162
Class
Code
function testUpgrade6xFormatPlural() {
$this
->assertCoderFail(' strtr(format_plural($num, \'1 %type post\', \'@count %type posts\'), array(\'%type\' => theme(\'placeholder\', $type)));');
$this
->assertCoderPass(' format_plural($num, \'1 %type post\', \'@count %type posts\', array(\'%type\' => $type));');
}