Exemplo n.º 1
0
 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'));
 }
Exemplo n.º 2
0
 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'));
 }
Exemplo n.º 3
0
 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)));
 }