/**
* Tests Twitter->geoReverseGeoCode()
*/
public function testGeoReverseGeoCode()
{
$response = $this->twitter->geoReverseGeoCode(37.7821120598956, -122.400612831116);
$this->assertArrayHasKey('result', $response);
$this->assertArrayHasKey('places', $response['result']);
foreach ($response['result']['places'] as $row) {
$this->assertArrayHasKey('name', $row);
$this->assertArrayHasKey('contained_within', $row);
$this->assertArrayHasKey('place_type', $row);
$this->assertArrayHasKey('country_code', $row);
$this->assertArrayHasKey('url', $row);
$this->assertArrayHasKey('bounding_box', $row);
$this->assertArrayHasKey('attributes', $row);
$this->assertArrayHasKey('id', $row);
$this->assertArrayHasKey('full_name', $row);
$this->assertArrayHasKey('country', $row);
}
$this->assertArrayHasKey('type', $response['query']);
$this->assertArrayHasKey('params', $response['query']);
$this->assertArrayHasKey('coordinates', $response['query']['params']);
$this->assertArrayHasKey('accuracy', $response['query']['params']);
$this->assertArrayHasKey('granularity', $response['query']['params']);
$this->assertArrayHasKey('url', $response['query']);
}