public function PHPUnit_TextUI_ResultPrinter::printResult in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit/src/TextUI/ResultPrinter.php \PHPUnit_TextUI_ResultPrinter::printResult()
Parameters
PHPUnit_Framework_TestResult $result:
File
- vendor/
phpunit/ phpunit/ src/ TextUI/ ResultPrinter.php, line 165
Class
- PHPUnit_TextUI_ResultPrinter
- Prints the result of a TextUI TestRunner run.
Code
public function printResult(PHPUnit_Framework_TestResult $result) {
$this
->printHeader();
$this
->printErrors($result);
$printSeparator = $result
->errorCount() > 0;
if ($printSeparator && $result
->failureCount() > 0) {
$this
->write("\n--\n\n");
}
$printSeparator = $printSeparator || $result
->failureCount() > 0;
$this
->printFailures($result);
if ($this->verbose) {
if ($printSeparator && $result
->riskyCount() > 0) {
$this
->write("\n--\n\n");
}
$printSeparator = $printSeparator || $result
->riskyCount() > 0;
$this
->printRisky($result);
if ($printSeparator && $result
->notImplementedCount() > 0) {
$this
->write("\n--\n\n");
}
$printSeparator = $printSeparator || $result
->notImplementedCount() > 0;
$this
->printIncompletes($result);
if ($printSeparator && $result
->skippedCount() > 0) {
$this
->write("\n--\n\n");
}
$this
->printSkipped($result);
}
$this
->printFooter($result);
}