You are here

public function PHP_CodeCoverage_Driver_Xdebug::stop in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-code-coverage/src/CodeCoverage/Driver/Xdebug.php \PHP_CodeCoverage_Driver_Xdebug::stop()

Stop collection of code coverage information.

Return value

array

Overrides PHP_CodeCoverage_Driver::stop

File

vendor/phpunit/php-code-coverage/src/CodeCoverage/Driver/Xdebug.php, line 49

Class

PHP_CodeCoverage_Driver_Xdebug
Driver for Xdebug's code coverage functionality.

Code

public function stop() {
  $data = xdebug_get_code_coverage();
  xdebug_stop_code_coverage();
  return $this
    ->cleanup($data);
}