/** * @expectedException \Ipify\Exception\ServiceError */ public function testRaisesServiceErrorOnServiceError() { Settings::$endpoint = 'https://api.ipify.org/woo'; Ip::get(); }