/** * @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))); }
/** * @expectedException \cheeseCache\exceptions\InvalidCacheParameter */ public function testIsCacheSet() { $this->cache->isCacheSet(array(1, cheeseCacheApp\Cache::RESERVED_CACHE_KEY)); }