]> git.mxchange.org Git - friendica.git/blob - tests/src/Core/Lock/SemaphoreLockDriverTest.php
Bugfix ConfigCacheLoaderTest
[friendica.git] / tests / src / Core / Lock / SemaphoreLockDriverTest.php
1 <?php
2
3 namespace Friendica\Test\src\Core\Lock;
4
5 use Friendica\Core\Lock\SemaphoreLockDriver;
6
7 class SemaphoreLockDriverTest extends LockTest
8 {
9         public function setUp()
10         {
11                 parent::setUp();
12
13                 $this->app->shouldReceive('getHostname')->andReturn('friendica.local');
14
15                 $this->configMock
16                         ->shouldReceive('get')
17                         ->with('system', 'temppath')
18                         ->andReturn('/tmp/');
19         }
20
21         protected function getInstance()
22         {
23                 return new SemaphoreLockDriver();
24         }
25
26         function testLockTTL()
27         {
28                 // Semaphore doesn't work with TTL
29                 return true;
30         }
31 }