public function testGarbage() { parent::testGarbage(); $this->assertTrue(file_exists(jApp::tempPath() . 'cache/usingfile/jelix_cache___remainingDataKey.cache')); $this->assertFalse(file_exists(jApp::tempPath() . 'cache/usingfile/jelix_cache___garbage1DataKey.cache')); $this->assertFalse(file_exists(jApp::tempPath() . 'cache/usingfile/jelix_cache___garbage1DataKey.cache')); }
public function testGarbage() { parent::testGarbage(); $mmc = memcache_connect($this->mmhost, $this->mmport); $this->assertTrue(memcache_get($mmc, 'remainingDataKey') == 'remaining data'); $this->assertFalse(memcache_get($mmc, 'garbage1DataKey')); $this->assertFalse(memcache_get($mmc, 'garbage2DataKey')); }
public function testGarbage() { parent::testGarbage(); $this->assertFalse(jCache::garbage()); $this->assertTableContainsRecords('jlx_cache', array(array('cache_key' => 'remainingDataKey', 'cache_data' => serialize('remaining data'), 'cache_date' => null))); }