* Filter invalid xdebug records.

This commit is contained in:
liyang
2023-12-12 14:59:53 +08:00
parent 89f8988aeb
commit 11f6dbbb3b
+1 -1
View File
@@ -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;
}