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