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

Breadcrumb

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

function Report::__construct

Overrides File::__construct

File

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

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 __construct(string $name) {
    $dom = new DOMDocument();
    $dom->loadXML('<?xml version="1.0" ?><phpunit xmlns="https://schema.phpunit.de/coverage/1.0"><file /></phpunit>');
    $contextNode = $dom->getElementsByTagNameNS('https://schema.phpunit.de/coverage/1.0', 'file')
        ->item(0);
    parent::__construct($contextNode);
    $this->setName($name);
}
RSS feed
Powered by Drupal