root = vfsStream::setup('exampleDir'); } /** * @test */ public function directoryIsCreated() { $example = new Example('id'); $this->assertFalse($this->root->hasChild('id')); $example->setDirectory(vfsStream::url('exampleDir')); $this->assertTrue($this->root->hasChild('id')); } } ?>