$finder =
$this->
buildFinder();
$this->
assertSame( $finder,
$finder ->
ignoreVCS(true
) ->
ignoreDotFiles(true
) ->
ignoreVCSIgnored(true
) );
$this->
iniSet('open_basedir', \
dirname(__DIR__, 5
).\PATH_SEPARATOR.self::
toAbsolute('gitignore/search_root'
));
$this->
assertIterator(self::
toAbsolute([ 'gitignore/search_root/b.txt',
'gitignore/search_root/c.txt',
'gitignore/search_root/dir',
'gitignore/search_root/dir/a.txt',
'gitignore/search_root/dir/c.txt',
]),
$finder->
in(self::
toAbsolute('gitignore/search_root'
))->
getIterator());
} protected function buildFinder() {