even if xdebug is installed, only run coverage when told to
This commit is contained in:
parent
b5f5c861c4
commit
883c73c9ff
@ -1031,14 +1031,14 @@ function _end_cache() {
|
|||||||
\* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
\* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
||||||
|
|
||||||
function _start_coverage() {
|
function _start_coverage() {
|
||||||
if(function_exists("xdebug_start_code_coverage")) {
|
if(COVERAGE && function_exists("xdebug_start_code_coverage")) {
|
||||||
#xdebug_start_code_coverage(XDEBUG_CC_UNUSED|XDEBUG_CC_DEAD_CODE);
|
#xdebug_start_code_coverage(XDEBUG_CC_UNUSED|XDEBUG_CC_DEAD_CODE);
|
||||||
xdebug_start_code_coverage(XDEBUG_CC_UNUSED);
|
xdebug_start_code_coverage(XDEBUG_CC_UNUSED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function _end_coverage() {
|
function _end_coverage() {
|
||||||
if(function_exists("xdebug_get_code_coverage")) {
|
if(COVERAGE && function_exists("xdebug_get_code_coverage")) {
|
||||||
if(!file_exists("data/coverage")) mkdir("data/coverage");
|
if(!file_exists("data/coverage")) mkdir("data/coverage");
|
||||||
$n = 0;
|
$n = 0;
|
||||||
$t = time();
|
$t = time();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user