/** * Test get from cache */ public function testGetFromCache() { $this->cache->expects($this->once())->method('get')->with($this->getUrl('foo', ['bar' => 'baz']))->will($this->returnValue($this->xml)); $this->cache->expects($this->never())->method('set'); $this->browser->setResponseCache($this->cache); $this->browser->get('foo', ['bar' => 'baz']); }