protected function PHPUnit_Util_TestDox_ResultPrinter_HTML::onTest in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Util/TestDox/ResultPrinter/HTML.php \PHPUnit_Util_TestDox_ResultPrinter_HTML::onTest()
Handler for 'on test' event.
Parameters
string $name:
bool $success:
Overrides PHPUnit_Util_TestDox_ResultPrinter::onTest
File
- vendor/
phpunit/ phpunit/ src/ Util/ TestDox/ ResultPrinter/ HTML.php, line 50
Class
- PHPUnit_Util_TestDox_ResultPrinter_HTML
- Prints TestDox documentation in HTML format.
Code
protected function onTest($name, $success = true) {
if (!$success) {
$strikeOpen = '<span style="text-decoration:line-through;">';
$strikeClose = '</span>';
}
else {
$strikeOpen = '';
$strikeClose = '';
}
$this
->write('<li>' . $strikeOpen . $name . $strikeClose . '</li>');
}