public function PHP_CodeCoverage_Report_XML_Totals::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/Totals.php \PHP_CodeCoverage_Report_XML_Totals::__construct()
File
- vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage/ Report/ XML/ Totals.php, line 46
Class
- PHP_CodeCoverage_Report_XML_Totals
- @since Class available since Release 2.0.0
Code
public function __construct(DOMElement $container) {
$this->container = $container;
$dom = $container->ownerDocument;
$this->linesNode = $dom
->createElementNS('http://schema.phpunit.de/coverage/1.0', 'lines');
$this->methodsNode = $dom
->createElementNS('http://schema.phpunit.de/coverage/1.0', 'methods');
$this->functionsNode = $dom
->createElementNS('http://schema.phpunit.de/coverage/1.0', 'functions');
$this->classesNode = $dom
->createElementNS('http://schema.phpunit.de/coverage/1.0', 'classes');
$this->traitsNode = $dom
->createElementNS('http://schema.phpunit.de/coverage/1.0', 'traits');
$container
->appendChild($this->linesNode);
$container
->appendChild($this->methodsNode);
$container
->appendChild($this->functionsNode);
$container
->appendChild($this->classesNode);
$container
->appendChild($this->traitsNode);
}