public function getConnection()
{
return $this->_connectionPool->getConnection();
}
public function testConstruct() { $host = 'localhost'; $port = 9500; $client = new Client(array('host' => $host, 'port' => $port, 'transport' => 'Thrift')); $this->assertEquals($host, $client->getConnection()->getHost()); $this->assertEquals($port, $client->getConnection()->getPort()); }