getApi() public method

public getApi ( ) : Basho\Riak\Api | null
return Basho\Riak\Api | null
 public function testApi()
 {
     $nodes = static::getCluster();
     $riak = new Riak($nodes, [], new Riak\Api\Pb());
     $api = $riak->getApi();
     $this->assertInstanceOf('Basho\\Riak\\Api\\Pb', $api);
 }
示例#2
0
 /**
  * @dataProvider getCluster
  * @param $nodes array
  */
 public function testApi($nodes)
 {
     $riak = new Riak($nodes);
     $this->assertInstanceOf('Basho\\Riak\\Api', $riak->getApi());
 }
示例#3
0
 public function testApi()
 {
     $nodes = static::getCluster();
     $riak = new Riak($nodes);
     $this->assertInstanceOf('Basho\\Riak\\Api', $riak->getApi());
 }