function CoderReviewUpgrade6xTest::testUpgrade6xFormatPlural in Coder 7.2
Same name and namespace in other branches
- 7 coder_review/tests/coder_review_6x.test \CoderReviewUpgrade6xTest::testUpgrade6xFormatPlural()
???
File
- coder_review/
tests/ coder_review_6x.test, line 196
Class
Code
function testUpgrade6xFormatPlural() {
$this
->assertCoderReviewFail(' strtr(format_plural($num, \'1 %type post\', \'@count %type posts\'), array(\'%type\' => theme(\'placeholder\', $type)));');
$this
->assertCoderReviewPass(' format_plural($num, \'1 %type post\', \'@count %type posts\', array(\'%type\' => $type));');
}