mirror of
https://github.com/friendica/friendica
synced 2025-02-25 22:38:14 +00:00
Added Redis Lock Unittests Added Memcached Lock Unittests Fixed a bug in dba Fixed a bug in RedisLock
26 lines
474 B
PHP
26 lines
474 B
PHP
<?php
|
|
|
|
namespace Friendica\Test\src\Core\Lock;
|
|
|
|
|
|
use Friendica\Core\Lock\SemaphoreLockDriver;
|
|
|
|
class SemaphoreLockDriverTest extends LockTest
|
|
{
|
|
/**
|
|
* @var \Friendica\Core\Lock\SemaphoreLockDriver
|
|
*/
|
|
private $semaphoreLockDriver;
|
|
|
|
protected function getInstance()
|
|
{
|
|
$this->semaphoreLockDriver = new SemaphoreLockDriver();
|
|
return $this->semaphoreLockDriver;
|
|
}
|
|
|
|
public function tearDown()
|
|
{
|
|
$this->semaphoreLockDriver->releaseAll();
|
|
parent::tearDown();
|
|
}
|
|
}
|