Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (31 sloc) 806 Bytes
<?php
namespace Doctrine\Bundle\DoctrineCacheBundle\Tests\Functional;
/**
* @group Functional
* @group Riak
*/
class RiakCacheTest extends BaseCacheTest
{
/**
* {@inheritDoc}
*/
protected function setUp()
{
parent::setUp();
if ( ! extension_loaded('riak')) {
$this->markTestSkipped('The ' . __CLASS__ .' requires the use of riak');
}
if (@fsockopen('localhost', 8087) === false) {
$this->markTestSkipped('The ' . __CLASS__ .' cannot connect to riak');
}
}
/**
* {@inheritDoc}
*/
protected function createCacheDriver()
{
$container = $this->compileContainer('riak');
$cache = $container->get('doctrine_cache.providers.my_riak_cache');
return $cache;
}
}
You can’t perform that action at this time.