/** * @expectedException \Geocoder\Exception\NoResultException * @expectedExceptionMessage Could not execute query http://api.geonames.org/findNearbyPlaceNameJSON?lat=-80.000000&lng=-170.000000&style=full&maxRows=5&username=username */ public function testGetReversedDataWithBadCoordinates() { $badCoordinateResponse = <<<JSON { "geonames": [ ] } JSON; $provider = new GeonamesProvider($this->getMockAdapterReturns($badCoordinateResponse), 'username'); $provider->getReversedData(array(-80.0, -170.0)); }