public addChild ( org\bovigo\vfs\vfsStreamContent $child ) | ||
$child | org\bovigo\vfs\vfsStreamContent |
public function addChild(vfsStreamContent $child)
{
$child->setParentPath($this->path());
$this->children[$child->getName()] = $child;
$this->updateModifications();
}
protected function setUp() { $file = vfsStream::newFile('template'); $this->fileSystem = vfsStream::setup(); $this->fileSystem->addChild($file); $this->filePath = $file->url(); }