From d605595a3e035162edede96e8ea2eff064391514 Mon Sep 17 00:00:00 2001 From: blackcoder87 Date: Thu, 3 Jun 2021 09:09:49 +0200 Subject: [PATCH] Fix unit tests failing under PHP 7.0 Remove tearDownAfterClass() --- tests/PHPUnit/Ilch/DatabaseTestCase.php | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/tests/PHPUnit/Ilch/DatabaseTestCase.php b/tests/PHPUnit/Ilch/DatabaseTestCase.php index f788b1006..1b39af949 100644 --- a/tests/PHPUnit/Ilch/DatabaseTestCase.php +++ b/tests/PHPUnit/Ilch/DatabaseTestCase.php @@ -58,10 +58,8 @@ abstract class DatabaseTestCase extends \PHPUnit\Framework\TestCase /** * This method is called before the first test of this test class is run. - * - * @return void */ - public static function setUpBeforeClass(): void + public static function setUpBeforeClass() { parent::setUpBeforeClass(); TestHelper::setConfigInRegistry(static::$configData); @@ -106,17 +104,6 @@ protected function setUp() parent::setUp(); } - /** - * This method is called after the last test of this test class is run. - * - * @return void - */ - public static function tearDownAfterClass(): void - { - $db = Registry::get('db'); - static::dropTables($db); - } - /** * Returns database schema sql statements to initialize database *