function Report::__construct
Overrides File::__construct
File
-
vendor/
phpunit/ php-code-coverage/ src/ Report/ Xml/ Report.php, line 21
Class
- Report
- @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
Namespace
SebastianBergmann\CodeCoverage\Report\XmlCode
public function __construct(string $name) {
$dom = new DOMDocument();
$dom->loadXML('<?xml version="1.0" ?><phpunit xmlns="https://schema.phpunit.de/coverage/1.0"><file /></phpunit>');
$contextNode = $dom->getElementsByTagNameNS('https://schema.phpunit.de/coverage/1.0', 'file')
->item(0);
parent::__construct($contextNode);
$this->setName($name);
}