You are here

public function vfsStreamUmaskTestCase::createDirectoryUsingStreamWithDifferentUmaskSettingButExplicit0777 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::createDirectoryUsingStreamWithDifferentUmaskSettingButExplicit0777()

@test

File

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

Class

vfsStreamUmaskTestCase
Test for umask settings.

Namespace

org\bovigo\vfs

Code

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