You are here

public function vfsStreamTestCase::createArraysAreTurnedIntoSubdirectoriesOfRoot in Zircon Profile 8

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

@test @group issue_20 @since 0.11.0

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamTestCase.php, line 372

Class

vfsStreamTestCase
Test for org\bovigo\vfs\vfsStream.

Namespace

org\bovigo\vfs

Code

public function createArraysAreTurnedIntoSubdirectoriesOfRoot() {
  $root = vfsStream::setup();
  $this
    ->assertSame($root, vfsStream::create(array(
    'test' => array(),
  )));
  $this
    ->assertTrue($root
    ->hasChildren());
  $this
    ->assertTrue($root
    ->hasChild('test'));
  $this
    ->assertInstanceOf('org\\bovigo\\vfs\\vfsStreamDirectory', $root
    ->getChild('test'));
  $this
    ->assertFalse($root
    ->getChild('test')
    ->hasChildren());
}