public static getRoot ( ) : org\bovigo\vfs\vfsStreamContainer | ||
return | org\bovigo\vfs\vfsStreamContainer |
public static function getRoot()
{
return self::$root;
}
private function createFile($filePath, $body = 'hello') { vfsStream::newFile($filePath)->at(vfsStreamWrapper::getRoot()); $path = vfsStream::url('root/' . $filePath); file_put_contents($path, $body); return $path; }