3 namespace Friendica\Test\src\Core\Lock;
5 use Friendica\Core\Lock\SemaphoreLockDriver;
7 class SemaphoreLockDriverTest extends LockTest
9 public function setUp()
13 $this->app->shouldReceive('getHostname')->andReturn('friendica.local');
16 ->shouldReceive('get')
17 ->with('system', 'temppath', NULL)
21 protected function getInstance()
23 return new SemaphoreLockDriver();
26 function testLockTTL()
28 // Semaphore doesn't work with TTL