3 namespace Friendica\Test\src\Core\Cache;
5 use Friendica\Core\Cache\MemcacheCache;
6 use Friendica\Core\Config\Configuration;
9 * @requires extension memcache
11 class MemcacheCacheTest extends MemoryCacheTest
13 protected function getInstance()
15 $configMock = \Mockery::mock(Configuration::class);
18 ->shouldReceive('get')
19 ->with('system', 'memcache_host')
20 ->andReturn('localhost');
22 ->shouldReceive('get')
23 ->with('system', 'memcache_port')
26 $this->cache = new MemcacheCache('localhost', $configMock);
30 public function tearDown()
32 $this->cache->clear(false);