/**
* @param PHPUnit_Framework_TestResult $result
* @access protected
*/
protected function printFooter(PHPUnit_Framework_TestResult $result)
{
if ($result->wasSuccessful() && $result->allCompletlyImplemented() && $result->noneSkipped()) {
$this->write("\n[1;37;42m" . ($result = sprintf("OK (%d test%s, %d assertion%s)", count($result), count($result) == 1 ? '' : 's', $this->numAssertions, $this->numAssertions == 1 ? '' : 's')) . str_repeat(' ', 80 - strlen($result)) . "[0m\n");
} elseif ((!$result->allCompletlyImplemented() || !$result->noneSkipped()) && $result->wasSuccessful()) {
$this->write("\n[1;37;43mOk, but incomplete or skipped tests! [0m\n" . sprintf("Tests: %d, Assertions: %d%s%s.\n", count($result), $this->numAssertions, $this->getCountString($result->notImplementedCount(), 'Incomplete'), $this->getCountString($result->skippedCount(), 'Skipped')));
} else {
$this->write(sprintf("\n[1;37;41mFailures [m\n" . "Tests: %d, Assertions: %s%s%s%s.\n", count($result), $this->numAssertions, $this->getCountString($result->failureCount(), 'Failures'), $this->getCountString($result->errorCount(), 'Errors'), $this->getCountString($result->notImplementedCount(), 'Incomplete'), $this->getCountString($result->skippedCount(), 'Skipped')));
}
}