friendica/tests/src/Core/Cache/MemcacheCacheDriverTest.php

31 lines
596 B
PHP
Raw Normal View History

2018-07-07 14:07:07 -04:00
<?php
namespace Friendica\Test\src\Core\Cache;
use Friendica\Core\Cache\CacheDriverFactory;
/**
* @runTestsInSeparateProcesses
* @preserveGlobalState disabled
* @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()
{
$this->mockConfigGet('system', 'memcache_host', 'localhost', 1);
$this->mockConfigGet('system', 'memcache_port', 11211, 1);
$this->cache = CacheDriverFactory::create('memcache');
return $this->cache;
2018-07-07 14:07:07 -04:00
}
public function tearDown()
{
$this->cache->clear(false);
2018-07-07 14:07:07 -04:00
parent::tearDown();
}
}