$this->assertEqual($counter,1,format_string('Make sure the expected number (@expected) patches with the rendered number (@counter)',array('@expected'=>1,'@counter'=>$counter)));
$this->assertEqual($counter,2,format_string('Make sure the expected number (@expected) patches with the rendered number (@counter)',array('@expected'=>2,'@counter'=>$counter)));
$this->assertEqual($counter,3,format_string('Make sure the expected number (@expected) patches with the rendered number (@counter)',array('@expected'=>3,'@counter'=>$counter)));
$this->assertEqual($counter,$expected_number,format_string('Make sure the expected number (@expected) patches with the rendered number (@counter)',array('@expected'=>$expected_number,'@counter'=>$counter)));
$this->assertEqual($counter,$expected_number,format_string('Make sure the expected number (@expected) patches with the rendered number (@counter)',array('@expected'=>$expected_number,'@counter'=>$counter)));
$this->assertEqual($counter,$expected_number,format_string('Make sure the expected number (@expected) patches with the rendered number (@counter)',array('@expected'=>$expected_number,'@counter'=>$counter)));
$this->assertEquals($expected,$counter_handler->render($this->testData[$i]),String::format('The expected number (@expected) patches with the rendered number (@counter) failed',array(
$this->assertEquals($expected,$counter_handler->render($this->testData[$i]),String::format('The expected number (@expected) patches with the rendered number (@counter) failed',array(
'@expected'=>$expected,
'@counter'=>$counter
)));
}
/**
* Tests a counter field with a random pager offset.
*
* @param int $i
* The row index to test.
*
* @dataProvider providerRowIndexes
*/
publicfunctiontestCounterRandomPagerOffset($i){
// Setup a counter field with a pager with a random offset.
$this->assertEquals($expected,$counter_handler->render($this->testData[$i]),String::format('The expected number (@expected) patches with the rendered number (@counter) failed',array(
$this->assertEquals($expected,$counter_handler->render($this->testData[$i]),String::format('The expected number (@expected) patches with the rendered number (@counter) failed',array(