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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy