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

Breadcrumb

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

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\Data

Code

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]);
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal