Constructor.
public function __construct() {
if (!extension_loaded('xdebug')) {
throw new PHP_CodeCoverage_Exception('Xdebug is not loaded.');
}
if (version_compare(phpversion('xdebug'), '2.2.0-dev', '>=') && !ini_get('xdebug.coverage_enable')) {
throw new PHP_CodeCoverage_Exception('You need to set xdebug.coverage_enable=On in your php.ini.');
}
}