[TASK] Switch skip condition to annotations in SemaphoreLockStrategyTest 01/57801/2
authorMichael Kersten <michael.kersten@3m5.de>
Sat, 4 Aug 2018 08:46:56 +0000 (10:46 +0200)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Sat, 4 Aug 2018 09:46:04 +0000 (11:46 +0200)
Use requires annotation for skipping test if function sem_get does
not exists.

Resolves: #85754
Releases: master
Change-Id: Ic77d0687533b09bc4460394a183dd6c00930d856
Reviewed-on: https://review.typo3.org/57801
Tested-by: TYPO3com <no-reply@typo3.com>
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
Tested-by: Tymoteusz Motylewski <t.motylewski@gmail.com>
typo3/sysext/core/Tests/Unit/Locking/SemaphoreLockStrategyTest.php

index 39d6d61..e554bd8 100644 (file)
@@ -19,19 +19,11 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
 
 /**
  * Test case
+ *
+ * @requires function sem_get
  */
 class SemaphoreLockStrategyTest extends UnitTestCase
 {
-    /**
-     * Set up the tests
-     */
-    protected function setUp()
-    {
-        if (!SemaphoreLockStrategy::getCapabilities()) {
-            $this->markTestSkipped('The system does not support semaphore locking.');
-        }
-    }
-
     /**
      * @test
      */