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

Breadcrumb

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

function CodeCoverage::clear

Clears collected code coverage data.

1 call to CodeCoverage::clear()
CodeCoverage::start in vendor/phpunit/php-code-coverage/src/CodeCoverage.php

File

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

Class

CodeCoverage
Provides collection functionality for PHP code coverage information.

Namespace

SebastianBergmann\CodeCoverage

Code

public function clear() : void {
    $this->currentId = null;
    $this->currentSize = null;
    $this->data = new ProcessedCodeCoverageData();
    $this->tests = [];
    $this->cachedReport = null;
}
RSS feed
Powered by Drupal