/** * 測試 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); }
public function setUp() { $this->_old_cache = Pix_Table::getCache(); $this->_old_save_memory = Pix_Table::$_save_memory; }