public function vfsStreamWrapperMkDirTestCase::mkdirRecursivelyUsesDefaultPermissions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperDirTestCase.php \org\bovigo\vfs\vfsStreamWrapperMkDirTestCase::mkdirRecursivelyUsesDefaultPermissions()
assert that mkdir() creates the correct directory structure
@test @group permissions
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamWrapperDirTestCase.php, line 146
Class
- vfsStreamWrapperMkDirTestCase
- Test for org\bovigo\vfs\vfsStreamWrapper around mkdir().
Namespace
org\bovigo\vfsCode
public function mkdirRecursivelyUsesDefaultPermissions() {
$this->foo
->chmod(0700);
$this
->assertTrue(mkdir($this->fooURL . '/another/more', 0777, true));
$this
->assertEquals(3, count($this->foo
->getChildren()));
$another = $this->foo
->getChild('another');
$this
->assertTrue($another
->hasChild('more'));
$this
->assertEquals(0777, $this->foo
->getChild('another')
->getPermissions());
$this
->assertEquals(0777, $this->foo
->getChild('another')
->getChild('more')
->getPermissions());
}