function Facade::process
Same name in this branch
- 11.1.x vendor/phpunit/php-code-coverage/src/Report/Html/Facade.php \SebastianBergmann\CodeCoverage\Report\Html\Facade::process()
Throws
File
-
vendor/
phpunit/ php-code-coverage/ src/ Report/ Xml/ Facade.php, line 55
Class
Namespace
SebastianBergmann\CodeCoverage\Report\XmlCode
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');
}