reverse() public method

{@inheritDoc}
public reverse ( $latitude, $longitude )
Esempio n. 1
0
    /**
     * @expectedException \Geocoder\Exception\NoResult
     * @expectedExceptionMessage Could not execute query "http://api.geonames.org/findNearbyPlaceNameJSON?lat=-80.000000&lng=-170.000000&style=full&maxRows=5&username=username".
     */
    public function testReverseWithBadCoordinates()
    {
        $badCoordinateResponse = <<<JSON
{
    "geonames": [ ]
}
JSON;
        $provider = new Geonames($this->getMockAdapterReturns($badCoordinateResponse), 'username');
        $provider->reverse(-80.0, -170.0);
    }