You are here

public function vfsStreamUmaskTestCase::umaskSettingShouldBeRespectedBySetup in Zircon Profile 8.0

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

@test

File

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

Class

vfsStreamUmaskTestCase
Test for umask settings.

Namespace

org\bovigo\vfs

Code

public function umaskSettingShouldBeRespectedBySetup() {
  vfsStream::umask(022);
  $root = vfsStream::setup();
  $this
    ->assertEquals(0755, $root
    ->getPermissions());
}