You are here

public function PHP_CodeCoverage_Report_XML_Totals::setNumMethods 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::setNumMethods()

File

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

Class

PHP_CodeCoverage_Report_XML_Totals
@since Class available since Release 2.0.0

Code

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