Beispiel #1
0
 /**
  * @test
  */
 public function can_remove()
 {
     $container = ContainerImpl::getInstance($this->_properties);
     $cache = CacheLocator::getProxyCacheInstance();
     $result = false;
     $cache->fetch('a', $result);
     $this->assertFalse($result);
     $cache->store('a', 'something');
     $result = false;
     $cache->fetch('a', $result);
     $this->assertTrue($result);
     $cache->remove('a');
     $result = false;
     $cache->fetch('a', $result);
     $this->assertFalse($result);
 }
Beispiel #2
0
 /**
  * @test
  */
 public function can_remove()
 {
     $container = ContainerImpl::getInstance($this->_properties);
     $cache = CacheLocator::getProxyCacheInstance();
     $cache->remove('a');
 }