[Finder] Added a test case for the GLOB_BRACE in Finder:in().
This commit is contained in:
parent
da67f5dc34
commit
30814d3846
@ -333,6 +333,17 @@ class FinderTest extends Iterator\RealIteratorTestCase
|
||||
$finder->in(__DIR__.'/Fixtures/A/a*');
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider getAdaptersTestData
|
||||
*/
|
||||
public function testInWithGlobBrace($adapter)
|
||||
{
|
||||
$finder = $this->buildFinder($adapter);
|
||||
$finder->in(array(__DIR__.'/Fixtures/{A,copy/A}/B/C'))->getIterator();
|
||||
|
||||
$this->assertIterator($this->toAbsoluteFixtures(array('A/B/C/abc.dat', 'copy/A/B/C/abc.dat.copy')), $finder);
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider getAdaptersTestData
|
||||
*/
|
||||
|
Reference in New Issue
Block a user