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

Breadcrumb

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

function Facade::process

Same name in this branch
  1. 11.1.x vendor/phpunit/php-code-coverage/src/Report/Html/Facade.php \SebastianBergmann\CodeCoverage\Report\Html\Facade::process()

Throws

XmlException

File

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

Class

Facade

Namespace

SebastianBergmann\CodeCoverage\Report\Xml

Code

public function process(CodeCoverage $coverage, string $target) : void {
    if (substr($target, -1, 1) !== DIRECTORY_SEPARATOR) {
        $target .= DIRECTORY_SEPARATOR;
    }
    $this->target = $target;
    $this->initTargetDirectory($target);
    $report = $coverage->getReport();
    $this->project = new Project($coverage->getReport()
        ->name());
    $this->setBuildInformation();
    $this->processTests($coverage->getTests());
    $this->processDirectory($report, $this->project);
    $this->saveDocument($this->project
        ->asDom(), 'index');
}
RSS feed
Powered by Drupal