public function vfsStreamUmaskTestCase::createDirectoryUsingStreamWithExplicit0 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::createDirectoryUsingStreamWithExplicit0()
@test
File
- vendor/mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamUmaskTestCase.php, line 145 
Class
- vfsStreamUmaskTestCase
- Test for umask settings.
Namespace
org\bovigo\vfsCode
public function createDirectoryUsingStreamWithExplicit0() {
  $root = vfsStream::setup();
  vfsStream::umask(022);
  mkdir(vfsStream::url('root/newdir'), null);
  $this
    ->assertEquals(00, $root
    ->getChild('newdir')
    ->getPermissions());
}