Bring coverage backend up to date
This commit is contained in:
parent
9c3764da65
commit
504731cba0
2 changed files with 8 additions and 4 deletions
|
@ -92,11 +92,11 @@ class RoboFile extends \Robo\Tasks {
|
|||
if (extension_loaded("pcov")) {
|
||||
return "$php -d pcov.enabled=1 -d pcov.directory=$code";
|
||||
} elseif (extension_loaded("xdebug")) {
|
||||
return $php;
|
||||
return "$php -d xdebug.mode=coverage";
|
||||
} elseif (file_exists($dir."pcov.$ext")) {
|
||||
return "$php -d extension=pcov.$ext -d pcov.enabled=1 -d pcov.directory=$code";
|
||||
} elseif (file_exists($dir."pcov.$ext")) {
|
||||
return "$php -d zend_extension=xdebug.$ext";
|
||||
} elseif (file_exists($dir."xdebug.$ext")) {
|
||||
return "$php -d zend_extension=xdebug.$ext -d xdebug.mode=coverage";
|
||||
} else {
|
||||
if (IS_WIN) {
|
||||
$dbg = dirname(\PHP_BINARY)."\\phpdbg.exe";
|
||||
|
|
|
@ -12,5 +12,9 @@ error_reporting(\E_ALL);
|
|||
require_once BASE."vendor".DIRECTORY_SEPARATOR."autoload.php";
|
||||
|
||||
if (function_exists("xdebug_set_filter")) {
|
||||
xdebug_set_filter(\XDEBUG_FILTER_CODE_COVERAGE, \XDEBUG_PATH_WHITELIST, [BASE."lib/"]);
|
||||
if (defined("XDEBUG_PATH_INCLUDE")) {
|
||||
xdebug_set_filter(\XDEBUG_FILTER_CODE_COVERAGE, XDEBUG_PATH_INCLUDE, [BASE."lib/"]);
|
||||
} else {
|
||||
xdebug_set_filter(\XDEBUG_FILTER_CODE_COVERAGE, XDEBUG_PATH_WHITELIST, [BASE."lib/"]);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue