Permalink
Browse files

- Revert [627].

  • Loading branch information...
1 parent 8a4e250 commit bccb93c4ffe9ff88620ea0c81ed4a18eeae22bb9 @sebastianbergmann committed May 28, 2007
Showing with 10 additions and 1 deletion.
  1. +10 −1 PHPUnit/Framework/TestResult.php
@@ -515,7 +515,12 @@ public function run(PHPUnit_Framework_Test $test)
restore_error_handler();
}
- $xdebugLoaded = extension_loaded('xdebug');
+ $xdebugLoaded = extension_loaded('xdebug');
+ $xdebugEnabled = $xdebugLoaded && xdebug_is_enabled();
+
+ if ($xdebugEnabled) {
+ xdebug_disable();
+ }
$useXdebug = ($xdebugLoaded && $this->collectCodeCoverageInformation && !$test instanceof PHPUnit_Extensions_SeleniumTestCase);
@@ -552,6 +557,10 @@ public function run(PHPUnit_Framework_Test $test)
}
}
+ if ($xdebugEnabled) {
+ xdebug_enable();
+ }
+
if ($errorHandlerSet === TRUE) {
restore_error_handler();
}

0 comments on commit bccb93c

Please sign in to comment.