public function vfsStreamWrapperFileTestCase::canNotRemoveFileFromDirectoryWithoutWritePermissions in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperFileTestCase.php \org\bovigo\vfs\vfsStreamWrapperFileTestCase::canNotRemoveFileFromDirectoryWithoutWritePermissions()
@test @group permissions @group bug_15
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamWrapperFileTestCase.php, line 309
Class
Namespace
org\bovigo\vfsCode
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')));
}