Skip to content

Commit

Permalink
- Merge [5275].
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastianbergmann committed Oct 12, 2009
1 parent 00e7ab6 commit 23775c7
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions PHPUnit/Util/Log/CodeCoverage/XML/Clover.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,6 +244,25 @@ public function process(PHPUnit_Framework_TestResult $result)
$fileStatistics['classes']++;
}

foreach ($data as $_line => $_data) {
if (is_array($_data)) {
$count = count($_data);
}

else if ($_data == -1) {
$count = 0;
}

else if ($_data == -2) {
continue;
}

$lines[$_line] = array(
'count' => $count,
'type' => 'stmt'
);
}

ksort($lines);

foreach ($lines as $_line => $_data) {
Expand Down

0 comments on commit 23775c7

Please sign in to comment.