Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fixes #866 - fix counting of uncovered lines

  • Loading branch information...
commit d6317eae92d0cee35007240c7a3e12da19e243ad 1 parent ec39694
@mrook mrook authored
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;
Please sign in to comment.
Something went wrong with that request. Please try again.