You are here

public function PHP_CodeCoverage_Report_XML_Totals::setNumFunctions in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Totals.php \PHP_CodeCoverage_Report_XML_Totals::setNumFunctions()

File

vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Totals.php, line 131

Class

PHP_CodeCoverage_Report_XML_Totals
@since Class available since Release 2.0.0

Code

public function setNumFunctions($count, $tested) {
  $this->functionsNode
    ->setAttribute('count', $count);
  $this->functionsNode
    ->setAttribute('tested', $tested);
  $this->functionsNode
    ->setAttribute('percent', PHP_CodeCoverage_Util::percent($tested, $count, true));
}