You are here

public function vfsStreamUmaskTestCase::createDirectoryUsingStreamWithDifferentUmaskSettingButExplicitModeRequestedByCall in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamUmaskTestCase.php \org\bovigo\vfs\vfsStreamUmaskTestCase::createDirectoryUsingStreamWithDifferentUmaskSettingButExplicitModeRequestedByCall()

@test

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamUmaskTestCase.php, line 168

Class

vfsStreamUmaskTestCase
Test for umask settings.

Namespace

org\bovigo\vfs

Code

public function createDirectoryUsingStreamWithDifferentUmaskSettingButExplicitModeRequestedByCall() {
  $root = vfsStream::setup();
  vfsStream::umask(022);
  mkdir(vfsStream::url('root/newdir'), 0700);
  $this
    ->assertEquals(0700, $root
    ->getChild('newdir')
    ->getPermissions());
}