public function vfsStreamWrapperMkDirTestCase::mkdirWithoutRootCreatesNewRootWithDefaultPermissions 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::mkdirWithoutRootCreatesNewRootWithDefaultPermissions()
no root > new directory becomes root
@test @group permissions
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamWrapperDirTestCase.php, line 178
Class
- vfsStreamWrapperMkDirTestCase
- Test for org\bovigo\vfs\vfsStreamWrapper around mkdir().
Namespace
org\bovigo\vfsCode
public function mkdirWithoutRootCreatesNewRootWithDefaultPermissions() {
vfsStreamWrapper::register();
$this
->assertTrue(@mkdir(vfsStream::url('foo')));
$this
->assertEquals(vfsStreamContent::TYPE_DIR, vfsStreamWrapper::getRoot()
->getType());
$this
->assertEquals('foo', vfsStreamWrapper::getRoot()
->getName());
$this
->assertEquals(0777, vfsStreamWrapper::getRoot()
->getPermissions());
}