Skip to content

Commit

Permalink
[Finder] Added a test case for the GLOB_BRACE in Finder:in().
Browse files Browse the repository at this point in the history
  • Loading branch information
jakzal committed Jan 1, 2014
1 parent 88c8770 commit 3cdffbb
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Tests/FinderTest.php
Expand Up @@ -333,6 +333,17 @@ public function testInWithNonDirectoryGlob($adapter)
$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
*/
Expand Down

0 comments on commit 3cdffbb

Please sign in to comment.