public function PHP_CodeCoverage::__construct in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/php-code-coverage/src/CodeCoverage.php \PHP_CodeCoverage::__construct()
Constructor.
Parameters
PHP_CodeCoverage_Driver $driver:
PHP_CodeCoverage_Filter $filter:
Throws
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;
}