Skip to content

Commit 5c3c771

Browse files
Add isLineIgnored() method.
1 parent 125f42e commit 5c3c771

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

PHP/CodeCoverage/Report/Node/File.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,15 @@ public function getNumTestedFunctions()
284284
return $this->numTestedFunctions;
285285
}
286286

287+
/**
288+
* @param integer $line
289+
* @return boolean
290+
*/
291+
public function isLineIgnored($line)
292+
{
293+
return isset($this->ignoredLines[$line]);
294+
}
295+
287296
/**
288297
* Calculates coverage statistics for the file.
289298
*/

0 commit comments

Comments
 (0)