function File::numberOfTestedFunctions
Overrides AbstractNode::numberOfTestedFunctions
File
-
vendor/
phpunit/ php-code-coverage/ src/ Node/ File.php, line 337
Class
- File
- @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
Namespace
SebastianBergmann\CodeCoverage\NodeCode
public function numberOfTestedFunctions() : int {
if ($this->numTestedFunctions === null) {
$this->numTestedFunctions = 0;
foreach ($this->functions as $function) {
if ($function['executableLines'] > 0 && $function['coverage'] === 100) {
$this->numTestedFunctions++;
}
}
}
return $this->numTestedFunctions;
}