function ProcessedCodeCoverageData::renameFile
File
-
vendor/
phpunit/ php-code-coverage/ src/ Data/ ProcessedCodeCoverageData.php, line 143
Class
- ProcessedCodeCoverageData
- @internal This class is not covered by the backward compatibility promise for phpunit/php-code-coverage
Namespace
SebastianBergmann\CodeCoverage\DataCode
public function renameFile(string $oldFile, string $newFile) : void {
$this->lineCoverage[$newFile] = $this->lineCoverage[$oldFile];
if (isset($this->functionCoverage[$oldFile])) {
$this->functionCoverage[$newFile] = $this->functionCoverage[$oldFile];
}
unset($this->lineCoverage[$oldFile], $this->functionCoverage[$oldFile]);
}