public function vfsStreamUmaskTestCase::createDirectoryUsingStreamWithDifferentUmaskSetting in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamUmaskTestCase.php \org\bovigo\vfs\vfsStreamUmaskTestCase::createDirectoryUsingStreamWithDifferentUmaskSetting()
@test
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamUmaskTestCase.php, line 134
Class
- vfsStreamUmaskTestCase
- Test for umask settings.
Namespace
org\bovigo\vfsCode
public function createDirectoryUsingStreamWithDifferentUmaskSetting() {
$root = vfsStream::setup();
vfsStream::umask(022);
mkdir(vfsStream::url('root/newdir'));
$this
->assertEquals(0755, $root
->getChild('newdir')
->getPermissions());
}