Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. RemoveLoggingElements.php

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\XmlConfiguration

Code

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);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal