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

Breadcrumb

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

function Report::source

File

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

Class

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

Namespace

SebastianBergmann\CodeCoverage\Report\Xml

Code

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