3 namespace Doctrine\Tests\Common\Cache;
8 use Doctrine\Common\Cache\RiakCache;
14 * @requires extension riak
16 class RiakCacheTest extends CacheTest
19 * @var \Riak\Connection
28 protected function setUp()
31 $this->connection = new Connection('127.0.0.1', 8087);
32 $this->bucket = new Bucket($this->connection, 'test');
33 } catch (Exception\RiakException $e) {
34 $this->markTestSkipped('Cannot connect to Riak.');
41 public function testGetStats()
43 $cache = $this->_getCacheDriver();
44 $stats = $cache->getStats();
46 $this->assertNull($stats);
50 * Retrieve RiakCache instance.
52 * @return \Doctrine\Common\Cache\RiakCache
54 protected function _getCacheDriver()
56 return new RiakCache($this->bucket);