/** * */ public function testHas() { $store = $this->getStore(); $store->shouldReceive('has')->once()->with('foo')->andReturn(true); $cache = new Cache($store); $cache->has('foo'); // $store = $this->getStore(); $store->shouldReceive('has')->once()->with('baz.foo')->andReturn(true); $cache = new Cache($store, 'baz'); $cache->has('foo'); }