minor #30839 Skip Glob brace test when GLOB_BRACE is unavailable (wouterj)
This PR was merged into the 3.4 branch.
Discussion
----------
Skip Glob brace test when GLOB_BRACE is unavailable
| Q | A
| ------------- | ---
| Branch? | 3.4
| Bug fix? | yes
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets | -
| License | MIT
| Doc PR | n/a
From [PHP.net](https://www.php.net/glob):
> Note: The GLOB_BRACE flag is not available on some non GNU systems, like Solaris.
This means running the testsuite in e.g. a php-alpine container fails atm. This test should be skipped in these environments.
Commits
-------
ce38fe3e58
Skip Glob brace test when GLOB_BRACE is unavailable
This commit is contained in:
commit
3f75092a74
@ -339,6 +339,10 @@ class FinderTest extends Iterator\RealIteratorTestCase
|
|||||||
|
|
||||||
public function testInWithGlobBrace()
|
public function testInWithGlobBrace()
|
||||||
{
|
{
|
||||||
|
if (!\defined('GLOB_BRACE')) {
|
||||||
|
$this->markTestSkipped('Glob brace is not supported on this system.');
|
||||||
|
}
|
||||||
|
|
||||||
$finder = $this->buildFinder();
|
$finder = $this->buildFinder();
|
||||||
$finder->in([__DIR__.'/Fixtures/{A,copy/A}/B/C'])->getIterator();
|
$finder->in([__DIR__.'/Fixtures/{A,copy/A}/B/C'])->getIterator();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user