protected function PHPUnit_Util_TestDox_ResultPrinter_Text::onTest

Handler for 'on test' event.

Parameters

string $name:

boolean $success:

Overrides PHPUnit_Util_TestDox_ResultPrinter::onTest

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Util/TestDox/ResultPrinter/Text.php, line 75

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");
}