From 3b28b1bd957e7bafcbb2cf3ddd6d0d041499cee1 Mon Sep 17 00:00:00 2001 From: Ibrahim BinAlshikh Date: Tue, 15 Oct 2024 01:15:54 +0300 Subject: [PATCH] Update bootstrap.php --- bootstrap.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bootstrap.php b/bootstrap.php index 6b8f87af..2569bdd5 100644 --- a/bootstrap.php +++ b/bootstrap.php @@ -5,6 +5,7 @@ use webfiori\framework\App; use webfiori\framework\autoload\ClassLoader; +use webfiori\framework\config\JsonDriver; $DS = DIRECTORY_SEPARATOR; @@ -88,6 +89,11 @@ //run code after tests completion. register_shutdown_function(function() { + JsonDriver::setConfigFileName('app-config.json'); + App::getConfig()->remove(); + JsonDriver::setConfigFileName('run-sql-test.json'); + App::getConfig()->remove(); + JsonDriver::setConfigFileName('super-confx.json'); App::getConfig()->remove(); }); fprintf(STDOUT, "Registering shutdown function completed.\n");