public function let(AdapterInterface $adapter, CacheInterface $cache)
 {
     $this->adapter = $adapter;
     $this->cache = $cache;
     $this->cache->load()->shouldBeCalled();
     $this->beConstructedWith($adapter, $cache);
 }
예제 #2
0
 /**
  * Constructor.
  *
  * @param AdapterInterface $adapter
  * @param CacheInterface   $cache
  */
 public function __construct(AdapterInterface $adapter, CacheInterface $cache)
 {
     $this->adapter = $adapter;
     $this->cache = $cache;
     $this->cache->load();
 }