PHPUnit_Framework_TestResult $result:
public function printResult(PHPUnit_Framework_TestResult $result) {
$this
->printHeader();
if ($result
->errorCount() > 0) {
$this
->printErrors($result);
}
if ($result
->failureCount() > 0) {
if ($result
->errorCount() > 0) {
print "\n--\n\n";
}
$this
->printFailures($result);
}
if ($this->verbose) {
if ($result
->deprecatedFeaturesCount() > 0) {
if ($result
->failureCount() > 0) {
print "\n--\n\nDeprecated PHPUnit features are being used";
}
foreach ($result
->deprecatedFeatures() as $deprecatedFeature) {
$this
->write($deprecatedFeature . "\n\n");
}
}
if ($result
->notImplementedCount() > 0) {
if ($result
->failureCount() > 0) {
print "\n--\n\n";
}
$this
->printIncompletes($result);
}
if ($result
->skippedCount() > 0) {
if ($result
->notImplementedCount() > 0) {
print "\n--\n\n";
}
$this
->printSkipped($result);
}
}
$this
->printFooter($result);
}