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