private function PHPUnit_Util_Log_TAP::writeDiagnostics in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit/src/Util/Log/TAP.php \PHPUnit_Util_Log_TAP::writeDiagnostics()
Parameters
PHPUnit_Framework_Test $test:
1 call to PHPUnit_Util_Log_TAP::writeDiagnostics()
- PHPUnit_Util_Log_TAP::endTest in vendor/
phpunit/ phpunit/ src/ Util/ Log/ TAP.php - A test ended.
File
- vendor/
phpunit/ phpunit/ src/ Util/ Log/ TAP.php, line 234
Class
- PHPUnit_Util_Log_TAP
- A TestListener that generates a logfile of the test execution using the Test Anything Protocol (TAP).
Code
private function writeDiagnostics(PHPUnit_Framework_Test $test) {
if (!$test instanceof PHPUnit_Framework_TestCase) {
return;
}
if (!$test
->hasOutput()) {
return;
}
foreach (explode("\n", trim($test
->getActualOutput())) as $line) {
$this
->write(sprintf("# %s\n", $line));
}
}