public function PHP_CodeCoverage_Filter::isFiltered

Checks whether or not a file is filtered.

When the whitelist is empty (default), blacklisting is used. When the whitelist is not empty, whitelisting is used.

Parameters

string $filename:

boolean $ignoreWhitelist:

Return value

boolean

Throws

PHP_CodeCoverage_Exception

File

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

Class

PHP_CodeCoverage_Filter
Filter for blacklisting and whitelisting of code coverage information.

Code

public function isFiltered($filename) {
  $filename = realpath($filename);
  if (!empty($this->whitelistedFiles)) {
    return !isset($this->whitelistedFiles[$filename]);
  }
  if (!$this->blacklistPrefilled) {
    $this
      ->prefillBlacklist();
  }
  return isset($this->blacklistedFiles[$filename]);
}