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

Breadcrumb

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

function RawCodeCoverageData::keepLineCoverageDataOnlyForLines

Parameters

int[] $lines:

File

vendor/phpunit/php-code-coverage/src/Data/RawCodeCoverageData.php, line 139

Class

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

Namespace

SebastianBergmann\CodeCoverage\Data

Code

public function keepLineCoverageDataOnlyForLines(string $filename, array $lines) : void {
    if (!isset($this->lineCoverage[$filename])) {
        return;
    }
    $this->lineCoverage[$filename] = array_intersect_key($this->lineCoverage[$filename], array_flip($lines));
}

API Navigation

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