Permalink
Browse files

[Finder] Added a test case for the GLOB_BRACE in Finder:in().

  • Loading branch information...
1 parent 88c8770 commit 3cdffbb6b2685db8c2d4dc1f3dfe67dc3e986fbb @jakzal jakzal committed Jan 1, 2014
Showing with 11 additions and 0 deletions.
  1. +11 −0 Tests/FinderTest.php
View
@@ -336,6 +336,17 @@ public function testInWithNonDirectoryGlob($adapter)
/**
* @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
+ */
public function testGetIterator($adapter)
{
$finder = $this->buildFinder($adapter);

0 comments on commit 3cdffbb

Please sign in to comment.