예제 #1
0
 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());
 }
예제 #2
0
파일: CacheTest.php 프로젝트: archayl/bolt
 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']);
 }