diff --git a/tests/DataStorage/Database/Connection/SQLiteConnectionTest.php b/tests/DataStorage/Database/Connection/SQLiteConnectionTest.php index 7b95355b8..107e18e75 100644 --- a/tests/DataStorage/Database/Connection/SQLiteConnectionTest.php +++ b/tests/DataStorage/Database/Connection/SQLiteConnectionTest.php @@ -53,4 +53,11 @@ class SQLiteConnectionTest extends \PHPUnit\Framework\TestCase unset($db['database']); $sqlite = new SQLiteConnection($db); } + + static function tearDownAfterClass() + { + if (\file_exists($GLOBALS['CONFIG']['db']['core']['sqlite']['admin']['database'])) { + \unlink($GLOBALS['CONFIG']['db']['core']['sqlite']['admin']['database']); + } + } }