PHPUnit_Framework_TestFailure $defect:
integer $count:
protected function printDefectHeader(PHPUnit_Framework_TestFailure $defect, $count) {
$failedTest = $defect
->failedTest();
if ($failedTest instanceof PHPUnit_Framework_SelfDescribing) {
$testName = $failedTest
->toString();
}
else {
$testName = get_class($failedTest);
}
$this
->write(sprintf("\n%d) %s\n", $count, $testName));
}