4 namespace Friendica\Test\src\Core\Cache;
6 use Friendica\Core\Cache\CacheDriverFactory;
9 * @requires extension memcache
11 class MemcacheCacheDriverTest extends MemoryCacheTest
13 protected function getInstance()
16 ->shouldReceive('get')
17 ->with('system', 'memcache_host')
18 ->andReturn('localhost');
21 ->shouldReceive('get')
22 ->with('system', 'memcache_port')
25 $this->cache = CacheDriverFactory::create('memcache');
30 public function tearDown()
32 $this->cache->clear(false);