function CodeCoverage::start
Same name in this branch
- 11.1.x vendor/phpunit/php-code-coverage/src/CodeCoverage.php \SebastianBergmann\CodeCoverage\CodeCoverage::start()
Throws
MoreThanOneDataSetFromDataProviderException
File
-
vendor/
phpunit/ phpunit/ src/ Runner/ CodeCoverage.php, line 148
Class
- CodeCoverage
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\RunnerCode
public function start(TestCase $test) : void {
if ($this->collecting) {
return;
}
$size = TestSize::unknown();
if ($test->size()
->isSmall()) {
$size = TestSize::small();
}
elseif ($test->size()
->isMedium()) {
$size = TestSize::medium();
}
elseif ($test->size()
->isLarge()) {
$size = TestSize::large();
}
$this->test = $test;
$this->codeCoverage
->start($test->valueObjectForEvents()
->id(), $size);
$this->collecting = true;
}