protected function tearDown() { foreach ($this->locations as $location) { $this->client->execute(new DeleteValue($location)); } parent::tearDown(); }
protected function setUp() { parent::setUp(); $namespace = new RiakNamespace('default', 'bucket'); $store = StoreBucketProperties::builder()->withAllowMulti(true)->withNVal(3)->withNamespace($namespace)->build(); $this->client->execute($store); }
protected function tearDown() { if ($this->client) { $this->client->execute(DeleteValue::builder($this->location)->build()); } parent::tearDown(); }
protected function setUp() { parent::setUp(); $hash = hash('crc32', __CLASS__); $bucket = sprintf('test_riak_client_%s_cats', $hash); $index = sprintf('test_riak_client_%s_famous', $hash); $namespace = new RiakNamespace('default', $bucket); $data = new ThunderCatsData($this->client, $namespace, $index); $this->searchData = $data; $this->indexName = $index; $this->namespace = $namespace; $this->searchData->setUp(); }
protected function setUp() { parent::setUp(); $hash = hash('crc32', __CLASS__); $bucketCrdt = sprintf('test_riak_client_%s_crdt_articles_bucket', $hash); $indexCrdt = sprintf('test_riak_client_%s_crdt_articles_index', $hash); $bucketKv = sprintf('test_riak_client_%s_kv_articles_bucket', $hash); $indexKv = sprintf('test_riak_client_%s_kv_articles_index', $hash); $namespaceCrdt = new RiakNamespace('maps', $bucketCrdt); $namespaceKv = new RiakNamespace(null, $bucketKv); $dataCrdt = new ArticlesData($this->client, $namespaceCrdt, $indexCrdt); $dataKv = new ArticlesData($this->client, $namespaceKv, $indexKv); $this->dataKv = $dataKv; $this->dataCrdt = $dataCrdt; $this->indexKv = $indexKv; $this->indexCrdt = $indexCrdt; $this->namespaceKv = $namespaceKv; $this->namespaceCrdt = $namespaceCrdt; $this->dataCrdt->setUp(); $this->dataKv->setUp(); }