You are here

public function vfsStreamWrapperMkDirTestCase::canNotIterateOverNonReadableDirectory in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperDirTestCase.php \org\bovigo\vfs\vfsStreamWrapperMkDirTestCase::canNotIterateOverNonReadableDirectory()

@test @group permissions @group bug_15

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamWrapperDirTestCase.php, line 257

Class

vfsStreamWrapperMkDirTestCase
Test for org\bovigo\vfs\vfsStreamWrapper around mkdir().

Namespace

org\bovigo\vfs

Code

public function canNotIterateOverNonReadableDirectory() {
  vfsStreamWrapper::register();
  vfsStreamWrapper::setRoot(new vfsStreamDirectory('root', 00));
  $this
    ->assertFalse(@opendir(vfsStream::url('root')));
  $this
    ->assertFalse(@dir(vfsStream::url('root')));
}