public function PHP_CodeCoverage_Report_XML_File::getTotals in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File.php \PHP_CodeCoverage_Report_XML_File::getTotals()
File
- vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage/ Report/ XML/ File.php, line 32
Class
- PHP_CodeCoverage_Report_XML_File
- @since Class available since Release 2.0.0
Code
public function getTotals() {
$totalsContainer = $this->contextNode->firstChild;
if (!$totalsContainer) {
$totalsContainer = $this->contextNode
->appendChild($this->dom
->createElementNS('http://schema.phpunit.de/coverage/1.0', 'totals'));
}
return new PHP_CodeCoverage_Report_XML_Totals($totalsContainer);
}