3 namespace Friendica\Test\src\Core\Lock;
5 use Friendica\Core\Lock\SemaphoreLockDriver;
8 * @runTestsInSeparateProcesses
9 * @preserveGlobalState disabled
11 class SemaphoreLockDriverTest extends LockTest
13 public function setUp()
17 $this->app->shouldReceive('getHostname')->andReturn('friendica.local');
18 $this->mockConfigGet('system', 'temppath', '/tmp/');
21 protected function getInstance()
23 return new SemaphoreLockDriver();
26 function testLockTTL()
28 // Semaphore doesn't work with TTL