public function PHP_CodeCoverage_Driver_PHPDBG::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/php-code-coverage/src/CodeCoverage/Driver/PHPDBG.php \PHP_CodeCoverage_Driver_PHPDBG::__construct()
Constructor.
File
- vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage/ Driver/ PHPDBG.php, line 22
Class
- PHP_CodeCoverage_Driver_PHPDBG
- Driver for PHPDBG's code coverage functionality.
Code
public function __construct() {
if (PHP_SAPI !== 'phpdbg') {
throw new PHP_CodeCoverage_Exception('This driver requires the PHPDBG SAPI');
}
if (!function_exists('phpdbg_start_oplog')) {
throw new PHP_CodeCoverage_Exception('This build of PHPDBG does not support code coverage');
}
}