protected function File_Iterator::acceptPath

@since Method available since Release 1.1.0

Parameters

string $path:

Return value

boolean

1 call to File_Iterator::acceptPath()
File_Iterator::accept in drupal/core/vendor/phpunit/php-file-iterator/File/Iterator.php

File

drupal/core/vendor/phpunit/php-file-iterator/File/Iterator.php, line 139

Class

File_Iterator
FilterIterator implementation that filters files based on prefix(es) and/or suffix(es). Hidden files and files from hidden directories are also filtered.

Code

protected function acceptPath($path) {
  foreach ($this->exclude as $exclude) {
    if (strpos($path, $exclude) === 0) {
      return FALSE;
    }
  }
  return TRUE;
}