public function vfsStreamWrapperMkDirTestCase::mkdirWithoutRootCreatesNewRoot 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::mkdirWithoutRootCreatesNewRoot()
no root > new directory becomes root
@test @group permissions
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamWrapperDirTestCase.php, line 93
Class
- vfsStreamWrapperMkDirTestCase
- Test for org\bovigo\vfs\vfsStreamWrapper around mkdir().
Namespace
org\bovigo\vfsCode
public function mkdirWithoutRootCreatesNewRoot() {
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());
}