Skip to content

Commit ce38fe3

Browse files
committed
Skip Glob brace test when GLOB_BRACE is unavailable
1 parent 668f585 commit ce38fe3

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

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

+4
Original file line numberDiff line numberDiff line change
@@ -339,6 +339,10 @@ public function testInWithNonDirectoryGlob()
339339

340340
public function testInWithGlobBrace()
341341
{
342+
if (!\defined('GLOB_BRACE')) {
343+
$this->markTestSkipped('Glob brace is not supported on this system.');
344+
}
345+
342346
$finder = $this->buildFinder();
343347
$finder->in([__DIR__.'/Fixtures/{A,copy/A}/B/C'])->getIterator();
344348

0 commit comments

Comments
 (0)