mirror of
https://github.com/friendica/friendica
synced 2024-06-22 21:49:23 +02:00
26 lines
430 B
PHP
26 lines
430 B
PHP
<?php
|
|
|
|
namespace Friendica\Test\src\Core\Lock;
|
|
|
|
|
|
use Friendica\Core\Cache\ArrayCache;
|
|
use Friendica\Core\Lock\CacheLockDriver;
|
|
|
|
/**
|
|
* @runTestsInSeparateProcesses
|
|
* @preserveGlobalState disabled
|
|
*/
|
|
class ArrayCacheLockDriverTest extends LockTest
|
|
{
|
|
protected function getInstance()
|
|
{
|
|
return new CacheLockDriver(new ArrayCache());
|
|
}
|
|
|
|
public function testLockTTL()
|
|
{
|
|
// ArrayCache doesn't support TTL
|
|
return true;
|
|
}
|
|
}
|