You are here

public function PHP_CodeCoverage::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-code-coverage/src/CodeCoverage.php \PHP_CodeCoverage::__construct()

Constructor.

Parameters

PHP_CodeCoverage_Driver $driver:

PHP_CodeCoverage_Filter $filter:

Throws

PHP_CodeCoverage_Exception

File

vendor/phpunit/php-code-coverage/src/CodeCoverage.php, line 96

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 = $this
      ->selectDriver();
  }
  if ($filter === null) {
    $filter = new PHP_CodeCoverage_Filter();
  }
  $this->driver = $driver;
  $this->filter = $filter;
}