Ejemplo n.º 1
0
 function let(AdapterInterface $adapter, CacheInterface $cache)
 {
     $this->adapter = $adapter;
     $this->cache = $cache;
     $cache->load()->shouldBeCalled();
     $this->beConstructedWith($adapter, $cache);
 }
Ejemplo n.º 2
0
 /**
  * Flush the cache.
  *
  * @return $this
  */
 public function flushCache()
 {
     $this->cache->flush();
     return $this;
 }