Exemple #1
0
 /**
  * Prepares the environment before running a test.
  */
 protected function setUp()
 {
     $dir = sys_get_temp_dir() . '/Q-' . __CLASS__;
     if (file_exists($dir)) {
         $this->cleanup();
     }
     mkdir($dir, 0770, true);
     $this->Cache = new Cache_File(array('path' => $dir));
     parent::setUp();
 }
Exemple #2
0
 /**
  * Prepares the environment before running a test.
  */
 protected function setUp()
 {
     $this->Cache = new Cache_Var();
     parent::setUp();
 }