org\bovigo\vfs\vfsStreamWrapperMkDirTestCase::mkdirWithoutRootCreatesNewRootDifferentPermissions PHP Метод

mkdirWithoutRootCreatesNewRootDifferentPermissions() публичный Метод

no root > new directory becomes root
    public function mkdirWithoutRootCreatesNewRootDifferentPermissions()
    {
        vfsStreamWrapper::register();
        $this->assertTrue(@mkdir(vfsStream::url('foo'), 0755));
        $this->assertEquals(vfsStreamContent::TYPE_DIR, vfsStreamWrapper::getRoot()->getType());
        $this->assertEquals('foo', vfsStreamWrapper::getRoot()->getName());
        $this->assertEquals(0755, vfsStreamWrapper::getRoot()->getPermissions());
    }