]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Core/Lock/SemaphoreLockDriverTest.php
Merge branch 'item-activities' of github.com:annando/friendica into item-activities
[friendica.git] / tests / src / Core / Lock / SemaphoreLockDriverTest.php
index 0fcf789e611a6a5a2fc455f302edebaf3f4c8744..cd4b9157334a1da5119e2adc9d889229ddd7e64d 100644 (file)
@@ -1,14 +1,32 @@
 <?php
 
-namespace Friendica\Test\Core\Lock;
+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()
        {
-               return new SemaphoreLockDriver();
+               $this->semaphoreLockDriver = new SemaphoreLockDriver();
+               return $this->semaphoreLockDriver;
+       }
+
+       public function tearDown()
+       {
+               $this->semaphoreLockDriver->releaseAll();
+               parent::tearDown();
+       }
+
+       function testLockTTL()
+       {
+               // Semaphore doesn't work with TTL
+               return true;
        }
-}
\ No newline at end of file
+}