public function testCallCreatesResponse() { $testOpts = array(); $this->mockClient->shouldReceive('get')->with('/data/2.5/weather', $testOpts)->once()->andReturn($this->getMockResponseInterface()); $response = $this->requester->call($testOpts); $this->assertInstanceOf('JCrowe\\OpenWeather\\Response', $response); }