getCache() public static method

public static getCache ( )
 /**
  * 測試 Cache 相關
  */
 public function testSetCache()
 {
     Pix_Table::setCache(null);
     $this->assertEquals(Pix_Table::getCache(), null);
     $cache = new Pix_Cache();
     Pix_Table::setCache($cache);
     $this->assertEquals(Pix_Table::getCache(), $cache);
     Pix_Table::setCache(null);
     $this->assertEquals(Pix_Table::getCache(), null);
 }
Esempio n. 2
0
 public function setUp()
 {
     $this->_old_cache = Pix_Table::getCache();
     $this->_old_save_memory = Pix_Table::$_save_memory;
 }