function Coverage::__construct
File
-
vendor/
phpunit/ php-code-coverage/ src/ Report/ Xml/ Coverage.php, line 25
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 __construct(DOMElement $context, string $line) {
$this->contextNode = $context;
$this->writer = new XMLWriter();
$this->writer
->openMemory();
$this->writer
->startElementNS(null, $context->nodeName, 'https://schema.phpunit.de/coverage/1.0');
$this->writer
->writeAttribute('nr', $line);
}