4 namespace Friendica\Test\src\Core\Lock;
6 use Friendica\Factory\CacheDriverFactory;
7 use Friendica\Core\Lock\CacheLockDriver;
10 * @requires extension Memcache
12 class MemcacheCacheLockDriverTest extends LockTest
14 protected function getInstance()
17 ->shouldReceive('get')
18 ->with('system', 'memcache_host')
19 ->andReturn('localhost');
22 ->shouldReceive('get')
23 ->with('system', 'memcache_port')
26 return new CacheLockDriver(CacheDriverFactory::create('memcache'));