public function it_caches_query_for_given_time(AbstractQuery $query) { $query->setResultCacheLifetime($this->lifetime)->shouldBeCalled(); $this->modify($query); }
/** * @param AbstractQuery $query */ public function modify(AbstractQuery $query) { $query->setResultCacheLifetime($this->cacheLifetime); }