8000 [Finder] Added a test case for the GLOB_BRACE in Finder:in(). · symfony/symfony@30814d3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 30814d3

Browse files
committed
[Finder] Added a test case for the GLOB_BRACE in Finder:in().
1 parent da67f5d commit 30814d3

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

src/Symfony/Component/Finder/Tests/FinderTest.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333,6 +333,17 @@ public function testInWithNonDirectoryGlob($adapter)
333333
$finder->in(__DIR__.'/Fixtures/A/a*');
334334
}
335335

336+
/**
337+
* @dataProvider getAdaptersTestData
338+
*/
339+
public function testInWithGlobBrace($adapter)
340+
{
341+
$finder = $this->buildFinder($adapter);
342+
$finder->in(array(__DIR__.'/Fixtures/{A,copy/A}/B/C'))->getIterator();
343+
344+
$this->assertIterator($this->toAbsoluteFixtures(array('A/B/C/abc.dat', 'copy/A/B/C/abc.dat.copy')), $finder);
345+
}
346+
336347
/**
337348
* @dataProvider getAdaptersTestData
338349
*/

0 commit comments

Comments
 (0)
0