function BuildInformation::nodeByName
1 call to BuildInformation::nodeByName()
- BuildInformation::setRuntimeInformation in vendor/
phpunit/ php-code-coverage/ src/ Report/ Xml/ BuildInformation.php
File
-
vendor/
phpunit/ php-code-coverage/ src/ Report/ Xml/ BuildInformation.php, line 61
Class
- BuildInformation
- @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
Namespace
SebastianBergmann\CodeCoverage\Report\XmlCode
private function nodeByName(string $name) : DOMElement {
$node = $this->contextNode
->getElementsByTagNameNS('https://schema.phpunit.de/coverage/1.0', $name)
->item(0);
if (!$node) {
$node = $this->contextNode
->appendChild($this->contextNode->ownerDocument
->createElementNS('https://schema.phpunit.de/coverage/1.0', $name));
}
return $node;
}