You are here

protected function PHPUnit_Util_TestDox_ResultPrinter_Text::onTest in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/phpunit/phpunit/src/Util/TestDox/ResultPrinter/Text.php \PHPUnit_Util_TestDox_ResultPrinter_Text::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/Text.php, line 34

Class

PHPUnit_Util_TestDox_ResultPrinter_Text
Prints TestDox documentation in text format.

Code

protected function onTest($name, $success = true) {
  if ($success) {
    $this
      ->write(' [x] ');
  }
  else {
    $this
      ->write(' [ ] ');
  }
  $this
    ->write($name . "\n");
}