Skip to content

Commit 1605ce1

Browse files
committed
[Filesystem] skip tests if not applicable
1 parent b6a29a2 commit 1605ce1

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)