public function setUp() { $path = new PlatformFileSystemPathFactory(); $this->workspace = $path->createTemporaryPath(); mkdir($this->workspace, 0777, true); $this->workspace = realpath($this->workspace); $this->cache = new Cache($this->workspace, $this->getApp()); }
public function setUp() { $app = $this->getApp(); $path = new PlatformFileSystemPathFactory(); $this->workspace = $path->createTemporaryPath(); mkdir($this->workspace, 0777, true); $this->workspace = realpath($this->workspace); $this->cache = new Cache($this->workspace, Cache::EXTENSION, 02, $app['filesystem']); }