2018-07-07 14:07:07 -04:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
|
|
namespace Friendica\Test\src\Core\Cache;
|
|
|
|
|
2018-11-05 02:51:35 -05:00
|
|
|
/**
|
|
|
|
* @runTestsInSeparateProcesses
|
|
|
|
* @preserveGlobalState disabled
|
|
|
|
*/
|
2018-07-07 14:07:07 -04:00
|
|
|
use Friendica\Core\Cache\CacheDriverFactory;
|
|
|
|
|
2018-07-18 15:04:18 -04:00
|
|
|
/**
|
|
|
|
* @requires extension memcache
|
|
|
|
*/
|
2018-07-07 14:35:42 -04:00
|
|
|
class MemcacheCacheDriverTest extends MemoryCacheTest
|
2018-07-07 14:07:07 -04:00
|
|
|
{
|
|
|
|
protected function getInstance()
|
|
|
|
{
|
2018-07-18 15:04:18 -04:00
|
|
|
$this->cache = CacheDriverFactory::create('memcache');
|
|
|
|
return $this->cache;
|
|
|
|
|
2018-07-07 14:07:07 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
public function tearDown()
|
|
|
|
{
|
2018-07-18 15:04:18 -04:00
|
|
|
$this->cache->clear(false);
|
2018-07-07 14:07:07 -04:00
|
|
|
parent::tearDown();
|
|
|
|
}
|
|
|
|
}
|