You are here

private function PHP_CodeCoverage::initializeFilesThatAreSeenTheFirstTime in Zircon Profile 8.0

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

@since Method available since Release 1.1.0

Parameters

array $data:

1 call to PHP_CodeCoverage::initializeFilesThatAreSeenTheFirstTime()
PHP_CodeCoverage::append in vendor/phpunit/php-code-coverage/src/CodeCoverage.php
Appends code coverage data.

File

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

Class

PHP_CodeCoverage
Provides collection functionality for PHP code coverage information.

Code

private function initializeFilesThatAreSeenTheFirstTime(array $data) {
  foreach ($data as $file => $lines) {
    if ($this->filter
      ->isFile($file) && !isset($this->data[$file])) {
      $this->data[$file] = array();
      foreach ($lines as $k => $v) {
        $this->data[$file][$k] = $v == -2 ? null : array();
      }
    }
  }
}