public function addCoverage(ClassMetadata $coveredClass, $coverageData)
 {
     foreach ($coverageData as $lineNumber => $tests) {
         $line = $coveredClass->getLine($lineNumber);
         if (is_null($line)) {
             throw new ParserException("Failed to find line " . $lineNumber . " in " . $coveredClass->getFilename());
         }
         $this->populateLine($line, $tests);
     }
 }
 /**
  * @param integer $lineNumber
  */
 private function modifyClassData(ClassMetadata $class, $lineNumber, Line $line, $data)
 {
     $coverageInformation = $this->generateCoverageInformation($line);
     $data[$class->getFilename()][$lineNumber] = $coverageInformation;
     return $data;
 }