public function PHP_CodeCoverage::getData

Returns the collected code coverage data.

@since Method available since Release 1.1.0

Return value

array

File

drupal/core/vendor/phpunit/php-code-coverage/PHP/CodeCoverage.php, line 187

Class

PHP_CodeCoverage
Provides collection functionality for PHP code coverage information.

Code

public function getData() {
  if ($this->addUncoveredFilesFromWhitelist) {
    $this
      ->addUncoveredFilesFromWhitelist();
  }

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