public function setup() { $fs = new Filesystem(); $fs->mount(__DIR__ . '/fs/a', '/doc/'); $fs->mount(__DIR__ . '/fs/b', '/doc/'); $this->fs = $fs; }
public function __construct($configs = array()) { $this->configs = array_merge($this->getDefaults(), $configs); $fs = new Filesystem(); if (is_array($this->configs['mount'])) { foreach ($this->configs['mount'] as $src => $target) { $fs->mount($src, $target); } } $this->fs = $fs; }