Exemplo n.º 1
0
 protected function setUp()
 {
     parent::setUp();
     if (file_exists($this->cache_dir)) {
         // cache directory possibly left after aborted
         // or failed run earlier
         $this->remove_cache_dir();
     }
     $this->create_cache_dir();
     $this->driver = new \phpbb\cache\driver\file($this->cache_dir);
 }
Exemplo n.º 2
0
 protected function setUp()
 {
     parent::setUp();
     $this->driver = new \phpbb\cache\driver\apc();
     $this->driver->purge();
 }
Exemplo n.º 3
0
 protected function setUp()
 {
     parent::setUp();
     $this->driver = new \phpbb\cache\driver\redis(self::$config['host'], self::$config['port']);
     $this->driver->purge();
 }