public function PHP_CodeCoverage::start

Start collection of code coverage information.

Parameters

mixed $id:

boolean $clear:

Throws

PHP_CodeCoverage_Exception

File

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

Class

PHP_CodeCoverage
Provides collection functionality for PHP code coverage information.

Code

public function start($id, $clear = FALSE) {
  if (!is_bool($clear)) {
    throw PHP_CodeCoverage_Util_InvalidArgumentHelper::factory(1, 'boolean');
  }
  if ($clear) {
    $this
      ->clear();
  }
  $this->currentId = $id;
  $this->driver
    ->start();
}