public function PHP_CodeCoverage_Report_XML_File_Report::__construct in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/phpunit/php-code-coverage/src/CodeCoverage/Report/XML/File/Report.php \PHP_CodeCoverage_Report_XML_File_Report::__construct()
Overrides PHP_CodeCoverage_Report_XML_File::__construct
File
- vendor/
phpunit/ php-code-coverage/ src/ CodeCoverage/ Report/ XML/ File/ Report.php, line 16
Class
- PHP_CodeCoverage_Report_XML_File_Report
- @since Class available since Release 2.0.0
Code
public function __construct($name) {
$this->dom = new DOMDocument();
$this->dom
->loadXML('<?xml version="1.0" ?><phpunit xmlns="http://schema.phpunit.de/coverage/1.0"><file /></phpunit>');
$this->contextNode = $this->dom
->getElementsByTagNameNS('http://schema.phpunit.de/coverage/1.0', 'file')
->item(0);
$this
->setName($name);
}