public function testGetFilteredContentCommentsOut()
 {
     $line = new CoveredLine("final something ");
     $line->setNeccessary(false);
     $line->setFinal(true);
     $this->assertEquals("//final something ", $line->getFilteredContent());
 }
 public function detectMethod($input, CoveredLine $line)
 {
     $match = preg_match(self::METHOD_PATTERN, $input, $matches);
     if (!$match) {
         return;
     }
     $line->setMethod(true);
     $line->setFinal($matches[1] === "final");
     $line->setMethodName($matches[4]);
 }