function CoderUpgrade6xTest::testUpgrade6xFormatPlural in Coder 6
Same name and namespace in other branches
- 6.2 tests/coder_6x.test \CoderUpgrade6xTest::testUpgrade6xFormatPlural()
File
- tests/
coder_6x.test, line 155
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));');
}