function RemoveLoggingElements::removeTextElement
1 call to RemoveLoggingElements::removeTextElement()
- 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 40
Class
- RemoveLoggingElements
- @no-named-arguments Parameter names are not covered by the backward compatibility promise for PHPUnit
Namespace
PHPUnit\TextUI\XmlConfigurationCode
private function removeTextElement(DOMDocument $document) : void {
$node = (new DOMXPath($document))->query('logging/text')
->item(0);
if (!$node instanceof DOMElement || $node->parentNode === null) {
return;
}
$node->parentNode
->removeChild($node);
}