public function vfsStreamUmaskTestCase::createFileWithDifferentUmaskSetting in Zircon Profile 8.0
Same name and namespace in other branches
- 8 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\vfsCode
public function createFileWithDifferentUmaskSetting() {
vfsStream::umask(022);
$file = new vfsStreamFile('foo');
$this
->assertEquals(0644, $file
->getPermissions());
}