public function vfsStreamUmaskTestCase::createFileUsingStreamWithDefaultUmaskSetting 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::createFileUsingStreamWithDefaultUmaskSetting()
@test
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamUmaskTestCase.php, line 103
Class
- vfsStreamUmaskTestCase
- Test for umask settings.
Namespace
org\bovigo\vfsCode
public function createFileUsingStreamWithDefaultUmaskSetting() {
$root = vfsStream::setup();
file_put_contents(vfsStream::url('root/newfile.txt'), 'file content');
$this
->assertEquals(0666, $root
->getChild('newfile.txt')
->getPermissions());
}