public function PHP_CodeCoverage_Report_XML_Totals::setNumClasses 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::setNumClasses()
File
- vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage/ Report/ XML/ Totals.php, line 101
Class
- PHP_CodeCoverage_Report_XML_Totals
- @since Class available since Release 2.0.0
Code
public function setNumClasses($count, $tested) {
$this->classesNode
->setAttribute('count', $count);
$this->classesNode
->setAttribute('tested', $tested);
$this->classesNode
->setAttribute('percent', PHP_CodeCoverage_Util::percent($tested, $count, true));
}