Skip to content

Commit

Permalink
Cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Dec 6, 2006
1 parent bf67548 commit bc276ff
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions PHPUnit/TextUI/ResultPrinter.php
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ protected function printDefects(array $defects, $count, $type)

/**
* @param PHPUnit_Framework_TestFailure $defect
* @param integer $count
* @param integer $count
* @access protected
*/
protected function printDefect(PHPUnit_Framework_TestFailure $defect, $count)
Expand All @@ -180,24 +180,25 @@ protected function printDefect(PHPUnit_Framework_TestFailure $defect, $count)

/**
* @param PHPUnit_Framework_TestFailure $defect
* @param integer $count
* @param integer $count
* @access protected
*/
protected function printDefectHeader(PHPUnit_Framework_TestFailure $defect, $count)
{
$failedTest = $defect->failedTest();
$message = '';

if ($failedTest instanceof PHPUnit_Framework_SelfDescribing) {
$message = $failedTest->toString();
$testName = $failedTest->toString();
} else {
$testName = get_class($failedTest);
}

$this->write(
sprintf(
"\n%d) %s\n",

$count,
$message
$testName
)
);
}
Expand Down

0 comments on commit bc276ff

Please sign in to comment.