protected function PHP_CodeCoverage_Report_Node_File::processFunctions in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/Node/File.php \PHP_CodeCoverage_Report_Node_File::processFunctions()
Parameters
PHP_Token_Stream $tokens:
1 call to PHP_CodeCoverage_Report_Node_File::processFunctions()
- PHP_CodeCoverage_Report_Node_File::calculateStatistics in vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage/ Report/ Node/ File.php - Calculates coverage statistics for the file.
File
- vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage/ Report/ Node/ File.php, line 630
Class
- PHP_CodeCoverage_Report_Node_File
- Represents a file in the code coverage information tree.
Code
protected function processFunctions(PHP_Token_Stream $tokens) {
$functions = $tokens
->getFunctions();
unset($tokens);
$link = $this
->getId() . '.html#';
foreach ($functions as $functionName => $function) {
$this->functions[$functionName] = array(
'functionName' => $functionName,
'signature' => $function['signature'],
'startLine' => $function['startLine'],
'executableLines' => 0,
'executedLines' => 0,
'ccn' => $function['ccn'],
'coverage' => 0,
'crap' => 0,
'link' => $link . $function['startLine'],
);
$this->startLines[$function['startLine']] =& $this->functions[$functionName];
$this->endLines[$function['endLine']] =& $this->functions[$functionName];
}
}