public function PHP_CodeCoverage_Report_XML_Totals::setNumLines in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Totals.php \PHP_CodeCoverage_Report_XML_Totals::setNumLines()
File
- vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage/ Report/ XML/ Totals.php, line 88
Class
- PHP_CodeCoverage_Report_XML_Totals
- @since Class available since Release 2.0.0
Code
public function setNumLines($loc, $cloc, $ncloc, $executable, $executed) {
$this->linesNode
->setAttribute('total', $loc);
$this->linesNode
->setAttribute('comments', $cloc);
$this->linesNode
->setAttribute('code', $ncloc);
$this->linesNode
->setAttribute('executable', $executable);
$this->linesNode
->setAttribute('executed', $executed);
$this->linesNode
->setAttribute('percent', PHP_CodeCoverage_Util::percent($executed, $executable, true));
}