diff --git a/src/result/collection/LineResultCollection.php b/src/result/collection/LineResultCollection.php
index <HASH>..<HASH> 100644
--- a/src/result/collection/LineResultCollection.php
+++ b/src/result/collection/LineResultCollection.php
@@ -91,16 +91,17 @@ class LineResultCollection implements LineResultCollectionInterface
      */
     public function getCodeCoverage()
     {
+        $value = 0.0;
         $executedCount = $this->getExecutedLineCount();
         $executableCount = $this->getExecutableLineCount();
 
-        $value = (float) 100;
-
         //PHP Warning:  Division by zero in ....
-        if ($executedCount >= 1 && $executableCount >= 1) {
-            $value = (float) $executedCount / $executableCount * 100;
+        if ($executedCount <= 0 || $executableCount <= 0) {
+            return new Coverage($value);
         }
 
+        $value = (float) $executedCount / $executableCount * 100;
+
         return new Coverage($value);
     }
PHP Warning:  Division by zero in ....