/** * An exception should be thrown if the place of interest can not be * found. * * @expectedException Services_OpenStreetMap_Exception * @expectedExceptionMessage Could not get coords for Neeenaaa, Ireland * * @return void */ public function testGetCoordsOfNonExistentPlace() { $mock = new HTTP_Request2_Adapter_Mock(); $mock->addResponse(fopen(__DIR__ . '/responses/nominatim_search_neeenaaa.xml', 'rb')); $osm = new Services_OpenStreetMap(array('adapter' => $mock)); $osm->getCoordsOfPlace('Neeenaaa, Ireland'); }