Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
31 lines (24 sloc) 821 Bytes
<?php
namespace Doctrine\Bundle\DoctrineCacheBundle\Tests\Functional;
use Doctrine\Bundle\DoctrineCacheBundle\Tests\FunctionalTestCase;
/**
* @group Functional
*/
abstract class BaseCacheTest extends FunctionalTestCase
{
/**
* @return \Doctrine\Common\Cache\Cache
*/
abstract protected function createCacheDriver();
public function testCacheDriver()
{
$cache = $this->createCacheDriver();
$this->assertNotNull($cache);
$this->assertInstanceOf('Doctrine\Common\Cache\Cache', $cache);
$this->assertTrue($cache->save('key', 'value'));
$this->assertTrue($cache->contains('key'));
$this->assertEquals('value', $cache->fetch('key'));
$this->assertTrue($cache->delete('key'));
$this->assertFalse($cache->contains('key'));
}
}
You can’t perform that action at this time.