public function vfsStreamDirectoryIssue18TestCase::setUp in Zircon Profile 8.0
Same name and namespace in other branches
- 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
Namespace
org\bovigo\vfsCode
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'));
}