$command = (new Command\Builder\FetchObject($riak))
->buildLocation($user_id, 'users', 'default')
->build();
$response = $command->execute();
$user = $response->getObject();
/** * Tests validate properly verifies the Object is not there * * @expectedException \Basho\Riak\Command\Builder\Exception */ public function testValidateLocation() { $builder = new Command\Builder\FetchObject(static::$riak); $builder->buildBucket('some_bucket'); $builder->build(); }