public function PHPUnit_Util_Log_JSON::startTestSuite in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/phpunit/src/Util/Log/JSON.php \PHPUnit_Util_Log_JSON::startTestSuite()
A testsuite started.
Parameters
PHPUnit_Framework_TestSuite $suite:
Overrides PHPUnit_Framework_TestListener::startTestSuite
File
- vendor/
phpunit/ phpunit/ src/ Util/ Log/ JSON.php, line 139
Class
- PHPUnit_Util_Log_JSON
- A TestListener that generates JSON messages.
Code
public function startTestSuite(PHPUnit_Framework_TestSuite $suite) {
$this->currentTestSuiteName = $suite
->getName();
$this->currentTestName = '';
$this
->write(array(
'event' => 'suiteStart',
'suite' => $this->currentTestSuiteName,
'tests' => count($suite),
));
}