You are here

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

mkdir() should not overwrite existing root

@test

File

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

Class

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

Namespace

org\bovigo\vfs

Code

public function mkdirNoNewRootRecursively() {
  $this
    ->assertFalse(mkdir(vfsStream::url('another/more'), 0777, true));
  $this
    ->assertEquals(2, count($this->foo
    ->getChildren()));
  $this
    ->assertSame($this->foo, vfsStreamWrapper::getRoot());
}