[BUGFIX] Semaphore test: release system resources
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Tests / Unit / Locking / SemaphoreLockStrategyTest.php
index 6e23b57..50c1b86 100644 (file)
@@ -19,27 +19,27 @@ use TYPO3\CMS\Core\Tests\UnitTestCase;
 
 /**
  * Testcase for \TYPO3\CMS\Core\Locking\SemaphoreLockStrategy
- *
- * @author Markus Klein <klein.t3@reelworx.at>
  */
-class SemaphoreLockStrategyTest extends UnitTestCase {
-
-       /**
-        * Set up the tests
-        */
-       protected function setUp() {
-               if (!SemaphoreLockStrategy::getCapabilities()) {
-                       $this->markTestSkipped('The system does not support semaphore locking.');
-               }
-       }
-
-       /**
-        * @test
-        */
-       public function acquireGetsSemaphore() {
-               $lock = new SemaphoreLockStrategy('99999');
-               $this->assertTrue($lock->acquire());
-               $lock->release();
-       }
+class SemaphoreLockStrategyTest extends UnitTestCase
+{
+    /**
+     * Set up the tests
+     */
+    protected function setUp()
+    {
+        if (!SemaphoreLockStrategy::getCapabilities()) {
+            $this->markTestSkipped('The system does not support semaphore locking.');
+        }
+    }
 
+    /**
+     * @test
+     */
+    public function acquireGetsSemaphore()
+    {
+        $lock = new SemaphoreLockStrategy('99999');
+        $this->assertTrue($lock->acquire());
+        $lock->release();
+        $lock->destroy();
+    }
 }