Ejemplo n.º 1
0
 /**
  * @depends testCacheByValues
  */
 public function testClearValue()
 {
     $this->cache->cache(array(1, 2, 3), 'value1');
     $this->cache->cache(array(1, 2), 'value2');
     $this->cache->cache(array(1, 2, 2), 'value3');
     $this->cache->clearCache(array(1, 2));
     $this->assertTrue($this->cache->isCacheSet(array(1, 2, 3)));
     $this->assertTrue($this->cache->isCacheSet(array(1, 2, 2)));
     $this->assertFalse($this->cache->isCacheSet(array(1, 2)));
 }
Ejemplo n.º 2
0
 /**
  * @expectedException \cheeseCache\exceptions\InvalidCacheParameter
  */
 public function testClearCache()
 {
     $this->cache->clearCache(array(1, cheeseCacheApp\Cache::RESERVED_CACHE_KEY));
 }