addCoordinates() public method

Add coordinates.
public addCoordinates ( string $key, array $coordinates )
$key string Key
$coordinates array Array with top left coordinate as first and bottom right coordinate as second element
 /**
  * @group unit
  */
 public function testAddCoordinates()
 {
     $key = 'pin.location';
     $coords = array('40.73, -74.1', '40.01, -71.12');
     $query = new GeoBoundingBox($key, array('1,2', '3,4'));
     $query->addCoordinates($key, $coords);
     $expectedArray = array('top_left' => $coords[0], 'bottom_right' => $coords[1]);
     $this->assertEquals($expectedArray, $query->getParam($key));
     $returnValue = $query->addCoordinates($key, $coords);
     $this->assertInstanceOf('Elastica\\Query\\GeoBoundingBox', $returnValue);
 }