function RemoveLoggingElements::removeTestDoxElement
1 call to RemoveLoggingElements::removeTestDoxElement()
- RemoveLoggingElements::migrate in vendor/
phpunit/ phpunit/ src/ TextUI/ Configuration/ Xml/ Migration/ Migrations/ RemoveLoggingElements.php
File
-
vendor/
phpunit/ phpunit/ src/ TextUI/ Configuration/ Xml/ Migration/ Migrations/ RemoveLoggingElements.php, line 29
Class
- RemoveLoggingElements
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\TextUI\XmlConfigurationCode
private function removeTestDoxElement(DOMDocument $document) : void {
$node = (new DOMXPath($document))->query('logging/testdoxXml')
->item(0);
if (!$node instanceof DOMElement || $node->parentNode === null) {
return;
}
$node->parentNode
->removeChild($node);
}