public function PHP_CodeCoverage_Filter::addDirectoryToWhitelist

Adds a directory to the whitelist (recursively).

Parameters

string $directory:

string $suffix:

string $prefix:

File

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

Class

PHP_CodeCoverage_Filter
Filter for blacklisting and whitelisting of code coverage information.

Code

public function addDirectoryToWhitelist($directory, $suffix = '.php', $prefix = '') {
  $facade = new File_Iterator_Facade();
  $files = $facade
    ->getFilesAsArray($directory, $suffix, $prefix);
  foreach ($files as $file) {
    $this
      ->addFileToWhitelist($file);
  }
}