[TASK] Switch skip condition to annotations in PdoBackendTest 99/57799/2
authorMichael Kersten <michael.kersten@3m5.de>
Sat, 4 Aug 2018 08:31:46 +0000 (10:31 +0200)
committerTymoteusz Motylewski <t.motylewski@gmail.com>
Sat, 4 Aug 2018 09:46:33 +0000 (11:46 +0200)
Use requires annotation for skipping test if php extension pdo_sqlite
is not loaded.

Resolves: #85752
Releases: master
Change-Id: I5bc418b9de553bd3ebf5be9cfa5d1497baa24cc2
Reviewed-on: https://review.typo3.org/57799
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/Cache/Backend/PdoBackendTest.php

index 43464c0..279570c 100644 (file)
@@ -23,6 +23,8 @@ use TYPO3\TestingFramework\Core\Unit\UnitTestCase;
 
 /**
  * Testcase for the PDO cache backend
+ *
+ * @requires extension pdo_sqlite
  */
 class PdoBackendTest extends UnitTestCase
 {
@@ -32,17 +34,6 @@ class PdoBackendTest extends UnitTestCase
     protected $resetSingletonInstances = true;
 
     /**
-     * Sets up this testcase
-     */
-    protected function setUp()
-    {
-        if (!extension_loaded('pdo_sqlite')) {
-            $this->markTestSkipped('pdo_sqlite extension was not available');
-        }
-        parent::setUp();
-    }
-
-    /**
      * @test
      */
     public function setThrowsExceptionIfNoFrontEndHasBeenSet()