You are here

public function PHP_CodeCoverage::getData in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-code-coverage/src/CodeCoverage.php \PHP_CodeCoverage::getData()

Returns the collected code coverage data. Set $raw = true to bypass all filters.

@since Method available since Release 1.1.0

Parameters

bool $raw:

Return value

array

File

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

Class

PHP_CodeCoverage
Provides collection functionality for PHP code coverage information.

Code

public function getData($raw = false) {
  if (!$raw && $this->addUncoveredFilesFromWhitelist) {
    $this
      ->addUncoveredFilesFromWhitelist();
  }

  // We need to apply the blacklist filter a second time
  // when no whitelist is used.
  if (!$raw && !$this->filter
    ->hasWhitelist()) {
    $this
      ->applyListsFilter($this->data);
  }
  return $this->data;
}