You are here

public function vfsStreamDirectoryIssue18TestCase::setUp in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamDirectoryIssue18TestCase.php \org\bovigo\vfs\vfsStreamDirectoryIssue18TestCase::setUp()

set up test environment

File

vendor/mikey179/vfsStream/src/test/php/org/bovigo/vfs/vfsStreamDirectoryIssue18TestCase.php, line 28

Class

vfsStreamDirectoryIssue18TestCase
Test for org\bovigo\vfs\vfsStreamDirectory.

Namespace

org\bovigo\vfs

Code

public function setUp() {
  $this->rootDirectory = vfsStream::newDirectory('/');
  $this->rootDirectory
    ->addChild(vfsStream::newDirectory('var/log/app'));
  $dir = $this->rootDirectory
    ->getChild('var/log/app');
  $dir
    ->addChild(vfsStream::newDirectory('app1'));
  $dir
    ->addChild(vfsStream::newDirectory('app2'));
  $dir
    ->addChild(vfsStream::newDirectory('foo'));
}