public function vfsStreamWrapperMkDirTestCase::rmdirDirCanNotRemoveDirFromNonWritingDirectory 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::rmdirDirCanNotRemoveDirFromNonWritingDirectory()
@test @group permissions @group bug_15
File
- vendor/
mikey179/ vfsStream/ src/ test/ php/ org/ bovigo/ vfs/ vfsStreamWrapperDirTestCase.php, line 366
Class
- vfsStreamWrapperMkDirTestCase
- Test for org\bovigo\vfs\vfsStreamWrapper around mkdir().
Namespace
org\bovigo\vfsCode
public function rmdirDirCanNotRemoveDirFromNonWritingDirectory() {
vfsStreamWrapper::register();
vfsStreamWrapper::setRoot(new vfsStreamDirectory('root', 00));
vfsStreamWrapper::getRoot()
->addChild(new vfsStreamDirectory('nonRemovableFolder'));
$this
->assertFalse(is_writable(vfsStream::url('root')));
$this
->assertFalse(rmdir(vfsStream::url('root/nonRemovableFolder')));
$this
->assertTrue(vfsStreamWrapper::getRoot()
->hasChild('nonRemovableFolder'));
}