Skip to content

Commit

Permalink
Fix unit tests failing under PHP 7.0
Browse files Browse the repository at this point in the history
Remove tearDownAfterClass()
  • Loading branch information
blackcoder87 committed Jun 3, 2021
1 parent 83dfd16 commit d605595
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions tests/PHPUnit/Ilch/DatabaseTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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
*
Expand Down

0 comments on commit d605595

Please sign in to comment.