You are here

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

File

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

Class

PHP_CodeCoverage_Report_XML_Totals
@since Class available since Release 2.0.0

Code

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