3 namespace Friendica\Test\src\Core\Lock;
6 use Friendica\Core\Cache\ArrayCache;
7 use Friendica\Core\Lock\CacheLockDriver;
9 class ArrayCacheLockDriverTest extends LockTest
12 * @var \Friendica\Core\Cache\IMemoryCacheDriver
16 protected function getInstance()
18 $this->cache = new ArrayCache();
19 return new CacheLockDriver($this->cache);
22 public function tearDown()
24 $this->cache->clear();
28 public function testLockTTL()
30 // ArrayCache doesn't support TTL