public function __construct($config = []) { $defaults = ['coverage' => 0, 'cleanup' => true]; $this->_config = $config + $defaults; if (!extension_loaded('xdebug')) { throw new RuntimeException('Xdebug is not loaded.'); } if (!defined('HHVM_VERSION') && !ini_get('xdebug.coverage_enable')) { throw new RuntimeException('You need to set `xdebug.coverage_enable = On` in your php.ini.'); } }