Remove sqlite database after test

This commit is contained in:
Dennis Eichhorn 2018-10-10 23:38:22 +02:00
parent b979761e8c
commit 64c9cda54e

View File

@ -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']);
}
}
}