function XdebugDriver::stop
Overrides Driver::stop
File
-
vendor/
phpunit/ php-code-coverage/ src/ Driver/ XdebugDriver.php, line 108
Class
- XdebugDriver
- @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
Namespace
SebastianBergmann\CodeCoverage\DriverCode
public function stop() : RawCodeCoverageData {
$data = xdebug_get_code_coverage();
xdebug_stop_code_coverage();
if ($this->collectsBranchAndPathCoverage()) {
/* @var XdebugCodeCoverageWithPathCoverageType $data */
return RawCodeCoverageData::fromXdebugWithPathCoverage($data);
}
/* @var XdebugCodeCoverageWithoutPathCoverageType $data */
return RawCodeCoverageData::fromXdebugWithoutPathCoverage($data);
}