From ce38fe3e58096d12182fe919bd9fd4241c7f5b34 Mon Sep 17 00:00:00 2001 From: Wouter J Date: Tue, 2 Apr 2019 21:50:10 +0200 Subject: [PATCH] Skip Glob brace test when GLOB_BRACE is unavailable --- src/Symfony/Component/Finder/Tests/FinderTest.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Symfony/Component/Finder/Tests/FinderTest.php b/src/Symfony/Component/Finder/Tests/FinderTest.php index aac35bc234..c0eac6da12 100644 --- a/src/Symfony/Component/Finder/Tests/FinderTest.php +++ b/src/Symfony/Component/Finder/Tests/FinderTest.php @@ -339,6 +339,10 @@ class FinderTest extends Iterator\RealIteratorTestCase public function testInWithGlobBrace() { + if (!\defined('GLOB_BRACE')) { + $this->markTestSkipped('Glob brace is not supported on this system.'); + } + $finder = $this->buildFinder(); $finder->in([__DIR__.'/Fixtures/{A,copy/A}/B/C'])->getIterator();