Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 30814d3

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

File tree

Expand file treeCollapse file tree

1 file changed

+11
-0
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+11
-0
lines changed
Open diff view settings
Collapse file

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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Finder/Tests/FinderTest.php
+11Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.