function Coverage::finalize
File
-
vendor/
phpunit/ php-code-coverage/ src/ Report/ Xml/ Coverage.php, line 49
Class
- Coverage
- @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
Namespace
SebastianBergmann\CodeCoverage\Report\XmlCode
public function finalize() : void {
$this->writer
->endElement();
$fragment = $this->contextNode->ownerDocument
->createDocumentFragment();
$fragment->appendXML($this->writer
->outputMemory());
$this->contextNode->parentNode
->replaceChild($fragment, $this->contextNode);
$this->finalized = true;
}