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

Breadcrumb

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

function Node::addDirectory

File

vendor/phpunit/php-code-coverage/src/Report/Xml/Node.php, line 49

Class

Node
@internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage

Namespace

SebastianBergmann\CodeCoverage\Report\Xml

Code

public function addDirectory(string $name) : Directory {
    $dirNode = $this->dom()
        ->createElementNS('https://schema.phpunit.de/coverage/1.0', 'directory');
    $dirNode->setAttribute('name', $name);
    $this->contextNode()
        ->appendChild($dirNode);
    return new Directory($dirNode);
}

API Navigation

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