function Iterator::acceptPath
1 call to Iterator::acceptPath()
- Iterator::accept in vendor/
phpunit/ php-file-iterator/ src/ Iterator.php
File
-
vendor/
phpunit/ php-file-iterator/ src/ Iterator.php, line 76
Class
- Iterator
- @template-extends FilterIterator<int, string, AppendIterator>
Namespace
SebastianBergmann\FileIteratorCode
private function acceptPath(string $path) : bool {
// Filter files in hidden directories by checking path that is relative to the base path.
if (preg_match('=/\\.[^/]*/=', str_replace((string) $this->basePath, '', $path))) {
return false;
}
return true;
}