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

Breadcrumb

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

function CodeCoverage::stop

Same name in this branch
  1. 11.1.x vendor/phpunit/phpunit/src/Runner/CodeCoverage.php \PHPUnit\Runner\CodeCoverage::stop()

@psalm-param array<string,list<int>> $linesToBeIgnored

File

vendor/phpunit/php-code-coverage/src/CodeCoverage.php, line 180

Class

CodeCoverage
Provides collection functionality for PHP code coverage information.

Namespace

SebastianBergmann\CodeCoverage

Code

public function stop(bool $append = true, ?TestStatus $status = null, array|false $linesToBeCovered = [], array $linesToBeUsed = [], array $linesToBeIgnored = []) : RawCodeCoverageData {
    $data = $this->driver
        ->stop();
    $this->linesToBeIgnored = array_merge_recursive($this->linesToBeIgnored, $linesToBeIgnored);
    $this->append($data, null, $append, $status, $linesToBeCovered, $linesToBeUsed, $linesToBeIgnored);
    $this->currentId = null;
    $this->currentSize = null;
    $this->cachedReport = null;
    return $data;
}
RSS feed
Powered by Drupal