[Filesystem] skip tests if not applicable
This commit is contained in:
parent
b6a29a28db
commit
1605ce1f07
@ -1115,6 +1115,10 @@ class FilesystemTest extends FilesystemTestCase
|
||||
mkdir($target);
|
||||
chmod($this->workspace, 0666);
|
||||
|
||||
if (false !== @chdir($this->workspace)) {
|
||||
$this->markTestSkipped('Test skipped as the used PHP version does not prevent entering directories without the required permissions.');
|
||||
}
|
||||
|
||||
$this->filesystem->dumpFile($file, 'baz');
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user