function test_service_unavailable() { $url = 'http://api.hostip.info/get_html.php?ip=0.0.0.0&position=true'; $ip_geocoder = new IpGeocoder(); $response = $ip_geocoder->call_geocoder_service($url); $this->assertEqual($response['body'], $this->ip_failure); $location = $ip_geocoder->geocode('0.0.0.0'); $this->assertFalse($location->success); }