You are here

public function vfsStreamWrapperMkDirTestCase::mkdirNonRecursively 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::mkdirNonRecursively()

assert that mkdir() creates the correct directory structure

@test @group permissions

File

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

Class

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

Namespace

org\bovigo\vfs

Code

public function mkdirNonRecursively() {
  $this
    ->assertFalse(mkdir($this->barURL . '/another/more'));
  $this
    ->assertEquals(2, count($this->foo
    ->getChildren()));
  $this
    ->assertTrue(mkdir($this->fooURL . '/another'));
  $this
    ->assertEquals(3, count($this->foo
    ->getChildren()));
  $this
    ->assertEquals(0777, $this->foo
    ->getChild('another')
    ->getPermissions());
}