You are here

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

@test

File

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

Class

vfsStreamUmaskTestCase
Test for umask settings.

Namespace

org\bovigo\vfs

Code

public function createFileWithDifferentUmaskSetting() {
  vfsStream::umask(022);
  $file = new vfsStreamFile('foo');
  $this
    ->assertEquals(0644, $file
    ->getPermissions());
}