public function testGetReversedDataWithRealCoordinates() { $provider = new GeocoderCaProvider(new \Geocoder\HttpAdapter\CurlHttpAdapter()); $result = $provider->getReversedData(array('40.707507', '-74.011255')); $this->assertEquals(40.707507, $result['latitude'], '', 0.0001); $this->assertEquals(-74.01125500000001, $result['longitude'], '', 0.0001); $this->assertEquals(2, $result['streetNumber']); $this->assertEquals('New St', $result['streetName']); $this->assertEquals(10005, $result['zipcode']); $this->assertEquals('New York', $result['city']); $this->assertEquals('NY', $result['cityDistrict']); $this->assertNull($result['region']); $this->assertNull($result['regionCode']); $this->assertNull($result['country']); $this->assertNull($result['countryCode']); $this->assertNull($result['timezone']); }