Permalink
Browse files

- Do not mark any line of uncovered files as covered.

  • Loading branch information...
1 parent c843768 commit 9065df1167d709731d36b0fe3f914bf60991184c @sebastianbergmann committed Jun 20, 2007
Showing with 6 additions and 0 deletions.
  1. +6 −0 PHPUnit/Util/Filter.php
@@ -226,6 +226,12 @@ public static function getFilteredCodeCoverage(array $codeCoverageInformation, $
xdebug_stop_code_coverage();
if (isset($coverage[$whitelistedFile])) {
+ foreach ($coverage[$whitelistedFile] as $line => $flag) {
+ if ($flag > 0) {
+ $coverage[$whitelistedFile][$line] = -1;
+ }
+ }
+
$codeCoverageInformation[] = array(
'test' => NULL,
'files' => array(

0 comments on commit 9065df1

Please sign in to comment.