2d0446bd38
* simplifying unittests - use @requires instead class_exist - define @small and @medium * simplifying unittests - removed unnecessary throwings
31 lines
483 B
PHP
31 lines
483 B
PHP
<?php
|
|
|
|
|
|
namespace Friendica\Test\src\Core\Cache;
|
|
|
|
|
|
use Friendica\Core\Cache\CacheDriverFactory;
|
|
|
|
/**
|
|
* @requires extension memcached
|
|
*/
|
|
class MemcachedCacheDriverTest extends MemoryCacheTest
|
|
{
|
|
/**
|
|
* @var \Friendica\Core\Cache\IMemoryCacheDriver
|
|
*/
|
|
private $cache;
|
|
|
|
protected function getInstance()
|
|
{
|
|
$this->cache = CacheDriverFactory::create('memcached');
|
|
return $this->cache;
|
|
}
|
|
|
|
public function tearDown()
|
|
{
|
|
$this->cache->clear(false);
|
|
parent::tearDown();
|
|
}
|
|
}
|