function Builder::build
Same name in this branch
- 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\NodeCode
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;
}