public function testGetWeatherDataIncorrectJson() { $this->mockGuzzleResponse->shouldReceive('json')->once()->andReturn(array('weather' => array('id' => 802, 'main' => 'Clouds', 'description' => 'scattered clouds', 'icon' => '03n'))); $this->assertEmpty($this->response->getWeatherData()); }