public function PHP_CodeCoverage::stop

Stop collection of code coverage information.

Parameters

boolean $append:

Return value

array

Throws

PHP_CodeCoverage_Exception

File

drupal/core/vendor/phpunit/php-code-coverage/PHP/CodeCoverage.php, line 244

Class

PHP_CodeCoverage
Provides collection functionality for PHP code coverage information.

Code

public function stop($append = TRUE) {
  if (!is_bool($append)) {
    throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory(1, 'boolean');
  }
  $data = $this->driver
    ->stop();
  $this
    ->append($data, NULL, $append);
  $this->currentId = NULL;
  return $data;
}