You are here

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

@test @group issue_32

File

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

Class

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

Namespace

org\bovigo\vfs

Code

public function canRetrieveFolderOfSameNameAsParentFolder() {
  $root = vfsStream::setup('testFolder');
  mkdir(vfsStream::url('testFolder') . '/testFolder/subTestFolder', 0777, true);
  $this
    ->assertTrue($root
    ->hasChild('testFolder'));
  $this
    ->assertNotNull($root
    ->getChild('testFolder'));
}