/** * @expectedException \Geocoder\Exception\UnsupportedException * @expectedExceptionMessage The CloudMadeProvider does not support IP addresses. */ public function testGetGeocodedDataWithRealIPv6() { if (!isset($_SERVER['CLOUDMADE_API_KEY'])) { $this->markTestSkipped('You need to configure the CLOUDMADE_API_KEY value in phpunit.xml'); } $provider = new CloudMadeProvider(new \Geocoder\HttpAdapter\CurlHttpAdapter(), $_SERVER['CLOUDMADE_API_KEY']); $result = $provider->getGeocodedData('::ffff:88.188.221.14'); }