function Totals::setNumClasses
File
-
vendor/
phpunit/ php-code-coverage/ src/ Report/ Xml/ Totals.php, line 84
Class
- Totals
- @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
Namespace
SebastianBergmann\CodeCoverage\Report\XmlCode
public function setNumClasses(int $count, int $tested) : void {
$this->classesNode
->setAttribute('count', (string) $count);
$this->classesNode
->setAttribute('tested', (string) $tested);
$this->classesNode
->setAttribute('percent', $count === 0 ? '0' : sprintf('%01.2F', Percentage::fromFractionAndTotal($tested, $count)->asFloat()));
}