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

Breadcrumb

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

function Project::tests

File

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

Class

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

Namespace

SebastianBergmann\CodeCoverage\Report\Xml

Code

public function tests() : Tests {
    $testsNode = $this->contextNode()
        ->getElementsByTagNameNS('https://schema.phpunit.de/coverage/1.0', 'tests')
        ->item(0);
    if (!$testsNode) {
        $testsNode = $this->contextNode()
            ->appendChild($this->dom()
            ->createElementNS('https://schema.phpunit.de/coverage/1.0', 'tests'));
    }
    return new Tests($testsNode);
}
RSS feed
Powered by Drupal