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

Breadcrumb

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

function Builder::build

Same name in this branch
  1. 11.1.x vendor/phpunit/phpunit/src/TextUI/Configuration/Builder.php \PHPUnit\TextUI\Configuration\Builder::build()

File

vendor/phpunit/php-code-coverage/src/Node/Builder.php, line 42

Class

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

Namespace

SebastianBergmann\CodeCoverage\Node

Code

public function build(CodeCoverage $coverage) : Directory {
    $data = clone $coverage->getData();
    // clone because path munging is destructive to the original data
    $commonPath = $this->reducePaths($data);
    $root = new Directory($commonPath, null);
    $this->addItems($root, $this->buildDirectoryStructure($data), $coverage->getTests());
    return $root;
}
RSS feed
Powered by Drupal