diff --git a/src/CodeCoverage/Generators/HtmlGenerator.php b/src/CodeCoverage/Generators/HtmlGenerator.php
index 2fedc70b..a531bf92 100644
--- a/src/CodeCoverage/Generators/HtmlGenerator.php
+++ b/src/CodeCoverage/Generators/HtmlGenerator.php
@@ -96,6 +96,8 @@ private function parse()
$coverage = round($covered * 100 / $total);
$this->totalSum += $total;
$this->coveredSum += $covered;
+ } else {
+ $this->totalSum += count(file($entry, FILE_SKIP_EMPTY_LINES));
}
$light = $total ? $total < 5 : count(file($entry)) < 50;