public function PHPUnit_Util_Log_JSON::startTest

A test started.

Parameters

PHPUnit_Framework_Test $test:

Overrides PHPUnit_Framework_TestListener::startTest

File

drupal/core/vendor/phpunit/phpunit/PHPUnit/Util/Log/JSON.php, line 190

Class

PHPUnit_Util_Log_JSON
A TestListener that generates JSON messages.

Code

public function startTest(PHPUnit_Framework_Test $test) {
  $this->currentTestName = PHPUnit_Util_Test::describe($test);
  $this->currentTestPass = TRUE;
  $this
    ->write(array(
    'event' => 'testStart',
    'suite' => $this->currentTestSuiteName,
    'test' => $this->currentTestName,
  ));
}