[Filesystem] skip tests if not applicable

This commit is contained in:
Christian Flothmann 2017-09-08 16:43:09 +02:00
parent b6a29a28db
commit 1605ce1f07
1 changed files with 4 additions and 0 deletions

View File

@ -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');
}