org\bovigo\vfs\vfsStreamWrapperFileTestCase::canNotRemoveFileFromDirectoryWithoutWritePermissions PHP Метод

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

    public function canNotRemoveFileFromDirectoryWithoutWritePermissions()
    {
        vfsStreamWrapper::register();
        vfsStreamWrapper::setRoot(new vfsStreamDirectory('root', 00));
        vfsStream::newFile('new.txt')->at(vfsStreamWrapper::getRoot());
        $this->assertFalse(unlink(vfsStream::url('root/new.txt')));
        $this->assertTrue(file_exists(vfsStream::url('root/new.txt')));
    }