mirror of
https://github.com/friendica/friendica
synced 2024-09-25 22:21:23 +02:00
32 lines
534 B
PHP
32 lines
534 B
PHP
<?php
|
|
|
|
namespace Friendica\Test\src\Core\Lock;
|
|
|
|
use Friendica\Core\Lock\SemaphoreLockDriver;
|
|
|
|
class SemaphoreLockDriverTest extends LockTest
|
|
{
|
|
public function setUp()
|
|
{
|
|
parent::setUp();
|
|
|
|
$this->app->shouldReceive('getHostname')->andReturn('friendica.local');
|
|
|
|
$this->configMock
|
|
->shouldReceive('get')
|
|
->with('system', 'temppath')
|
|
->andReturn('/tmp/');
|
|
}
|
|
|
|
protected function getInstance()
|
|
{
|
|
return new SemaphoreLockDriver();
|
|
}
|
|
|
|
function testLockTTL()
|
|
{
|
|
// Semaphore doesn't work with TTL
|
|
return true;
|
|
}
|
|
}
|