public function PHP_CodeCoverage::__construct

Constructor.

Parameters

PHP_CodeCoverage_Driver $driver:

PHP_CodeCoverage_Filter $filter:

File

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

Class

PHP_CodeCoverage
Provides collection functionality for PHP code coverage information.

Code

public function __construct(PHP_CodeCoverage_Driver $driver = NULL, PHP_CodeCoverage_Filter $filter = NULL) {
  if ($driver === NULL) {
    $driver = new PHP_CodeCoverage_Driver_Xdebug();
  }
  if ($filter === NULL) {
    $filter = new PHP_CodeCoverage_Filter();
  }
  $this->driver = $driver;
  $this->filter = $filter;
}