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

Breadcrumb

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

function Unit::addMethod

File

vendor/phpunit/php-code-coverage/src/Report/Xml/Unit.php, line 59

Class

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

Namespace

SebastianBergmann\CodeCoverage\Report\Xml

Code

public function addMethod(string $name) : Method {
    $node = $this->contextNode
        ->appendChild($this->contextNode->ownerDocument
        ->createElementNS('https://schema.phpunit.de/coverage/1.0', 'method'));
    return new Method($node, $name);
}
RSS feed
Powered by Drupal