connection = new Connection('127.0.0.1', 8087); $this->bucket = new Bucket($this->connection, 'test'); } catch (Exception\RiakException $e) { $this->markTestSkipped('Cannot connect to Riak.'); } } /** * {@inheritdoc} */ public function testGetStats() { $cache = $this->_getCacheDriver(); $stats = $cache->getStats(); $this->assertNull($stats); } /** * Retrieve RiakCache instance. * * @return \Doctrine\Common\Cache\RiakCache */ protected function _getCacheDriver() { return new RiakCache($this->bucket); } }