friendica/tests/src/Core/Lock/ArrayCacheLockDriverTest.php

22 lines
357 B
PHP

<?php
namespace Friendica\Test\src\Core\Lock;
use Friendica\Core\Cache\ArrayCache;
use Friendica\Core\Lock\CacheLockDriver;
class ArrayCacheLockDriverTest extends LockTest
{
protected function getInstance()
{
return new CacheLockDriver(new ArrayCache());
}
public function testLockTTL()
{
// ArrayCache doesn't support TTL
return true;
}
}