Skip to content

Commit

Permalink
Do not run report generation code with code coverage collection turne…
Browse files Browse the repository at this point in the history
…d on.
  • Loading branch information
sebastianbergmann committed Nov 11, 2006
1 parent e243abc commit d0f94a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions PHPUnit/Util/Report.php
Expand Up @@ -76,6 +76,10 @@ abstract class PHPUnit_Util_Report
*/
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);

Expand Down

0 comments on commit d0f94a4

Please sign in to comment.