/** * @expectedException \Geocoder\Exception\NoResultException * @expectedExceptionMessage Could not execute query http://nominatim.openstreetmap.org/search?q=L%C3%A4ntinen+Pitk%C3%A4katu+35%2C+Turku&format=xml&addressdetails=1&limit=5 */ public function testGetGeocodedDataWithAddressGetsEmptyXML() { $emptyXML = <<<XML <?xml version="1.0" encoding="utf-8"?><searchresults_empty></searchresults_empty> XML; $provider = new OpenStreetMapProvider($this->getMockAdapterReturns($emptyXML)); $provider->getGeocodedData('Läntinen Pitkäkatu 35, Turku'); }