Permalink
Browse files

Do not run report generation code with code coverage collection turne…

…d on.
  • Loading branch information...
1 parent e243abc commit d0f94a41795c94196b67a07b86f02827cbdb3c41 @sebastianbergmann committed Nov 11, 2006
Showing with 4 additions and 0 deletions.
  1. +4 −0 PHPUnit/Util/Report.php
View
@@ -76,6 +76,10 @@
*/
public static function render(PHPUnit_Framework_TestResult $result, $target)
{
+ if (defined('PHPUnit_INSIDE_OWN_TESTSUITE')) {
+ xdebug_stop_code_coverage();
+ }
+
$tests = PHPUnit_Util_Report_Test_Factory::create($result);
$coverage = PHPUnit_Util_Report_Coverage_Factory::create($result, $tests);

0 comments on commit d0f94a4

Please sign in to comment.