getInfo() public method

Return info object of the current node.
public getInfo ( ) : Info
return Elastica\Node\Info Node info object
 /**
  * @group functional
  */
 public function testGetInfo()
 {
     $client = $this->_getClient();
     $names = $client->getCluster()->getNodeNames();
     $name = reset($names);
     $node = new Node($name, $client);
     $info = $node->getInfo();
     $this->assertInstanceOf('Elastica\\Node\\Info', $info);
 }