[limb-svn] r5978 - 3.x/trunk/limb/tests_runner/lib/spikephpcoverage/src
svn at limb-project.com
svn at limb-project.com
Sat Jun 9 15:32:47 MSD 2007
Author: lifer
Date: 2007-06-09 15:32:47 +0400 (Sat, 09 Jun 2007)
New Revision: 5978
URL: http://fisheye.limb-project.com/changelog/limb/?cs=5978
Modified:
3.x/trunk/limb/tests_runner/lib/spikephpcoverage/src/CoverageRecorder.php
Log:
Fixed bug with nonexistent files,
which are coming from xdebug_get_code_coverage() function.
Modified: 3.x/trunk/limb/tests_runner/lib/spikephpcoverage/src/CoverageRecorder.php
===================================================================
--- 3.x/trunk/limb/tests_runner/lib/spikephpcoverage/src/CoverageRecorder.php 2007-06-09 08:58:44 UTC (rev 5977)
+++ 3.x/trunk/limb/tests_runner/lib/spikephpcoverage/src/CoverageRecorder.php 2007-06-09 11:32:47 UTC (rev 5978)
@@ -116,7 +116,13 @@
public function stopInstrumentation() {
if(extension_loaded("xdebug")) {
$this->coverageData = xdebug_get_code_coverage();
- xdebug_stop_code_coverage();
+ foreach($this->coverageData as $file => $data) {
+ if (!file_exists($file)) {
+ unset($this->coverageData[$file]);
+ }
+ }
+
+ xdebug_stop_code_coverage();
$this->logger->debug("[CoverageRecorder::stopInstrumentation()] Code coverage: " . print_r($this->coverageData, true),
__FILE__, __LINE__);
return true;
More information about the limb-svn
mailing list