public function PHPUnit_Util_Log_JSON::startTest in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/phpunit/src/Util/Log/JSON.php \PHPUnit_Util_Log_JSON::startTest()
A test started.
Parameters
PHPUnit_Framework_Test $test:
Overrides PHPUnit_Framework_TestListener::startTest
File
- vendor/
phpunit/ phpunit/ src/ Util/ Log/ JSON.php, line 169
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,
));
}