Skip to content

Commit 3145006

Browse files
minor symfony#24137 [Filesystem] skip tests if not applicable (xabbuh)
This PR was merged into the 2.7 branch. Discussion ---------- [Filesystem] skip tests if not applicable | Q | A | ------------- | --- | Branch? | 2.7 | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | | License | MIT | Doc PR | Commits ------- 1605ce1 [Filesystem] skip tests if not applicable
2 parents 9a6e83a + 1605ce1 commit 3145006

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/Filesystem/Tests/FilesystemTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1115,6 +1115,10 @@ public function testDumpFailsWithExceptionIfExecutablePermissionsForTheParentDir
11151115
mkdir($target);
11161116
chmod($this->workspace, 0666);
11171117

1118+
if (false !== @chdir($this->workspace)) {
1119+
$this->markTestSkipped('Test skipped as the used PHP version does not prevent entering directories without the required permissions.');
1120+
}
1121+
11181122
$this->filesystem->dumpFile($file, 'baz');
11191123
}
11201124

0 commit comments

Comments
 (0)