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