* Filter invalid xdebug records.
This commit is contained in:
@@ -33,7 +33,7 @@ class coverage
|
||||
|
||||
$this->traceFile = $tracePath . $this->moduleName . '_' . $this->testType . '_' . basename($this->runFile, '.php') . '.json';
|
||||
if(!is_dir($tracePath)) mkdir($tracePath, 0777, true);
|
||||
if(!is_file($this->traceFile) && $this->moduleName !== 'app') file_put_contents($this->traceFile, json_encode(array()));
|
||||
if(!is_file($this->traceFile) && !in_array($this->moduleName, array('app', 'www'))) file_put_contents($this->traceFile, json_encode(array()));
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user