Permalink
Browse files

- Fix #135.

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

0 comments on commit e2f449c

Please sign in to comment.