You are here

function CoderReviewUpgrade6xTest::testUpgrade6xFormatPlural in Coder 7.2

Same name and namespace in other branches
  1. 7 coder_review/tests/coder_review_6x.test \CoderReviewUpgrade6xTest::testUpgrade6xFormatPlural()

???

File

coder_review/tests/coder_review_6x.test, line 196

Class

CoderReviewUpgrade6xTest
???

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));');
}