/** * Check what happens when attempting to set an invalid email address. * * @expectedException Services_OpenStreetMap_RuntimeException * @expectedExceptionMessage Email address 'test example.com' is not valid * * @return void */ public function testSetInvalidEmailAddress() { $osm = new Services_OpenStreetMap(); $nominatim = new Services_OpenStreetMap_Nominatim($osm->getTransport()); $nominatim->setEmailAddress('test example.com'); }