Permalink
Browse files

Fixes #866 - fix counting of uncovered lines

  • Loading branch information...
1 parent ec39694 commit d6317eae92d0cee35007240c7a3e12da19e243ad @mrook mrook committed Jul 19, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 classes/phing/tasks/ext/coverage/CoverageMerger.php
View
6 classes/phing/tasks/ext/coverage/CoverageMerger.php
@@ -121,8 +121,14 @@ public static function merge($project, $codeCoverageInformation)
if ($props->getProperty($filename) != null) {
foreach ($data as $_line => $_data) {
+ if ($_data === null) {
+ continue;
+ }
+
if (is_array($_data)) {
$count = count($_data);
+
+ if ($count == 0) $count = -1;
} else if(isset($ignoreLines[$_line])) {
// line is marked as ignored
$count = 1;

0 comments on commit d6317ea

Please sign in to comment.