Skip to content

Commit

Permalink
Update bootstrap.php
Browse files Browse the repository at this point in the history
  • Loading branch information
usernane committed Oct 14, 2024
1 parent 2c8f36b commit 3b28b1b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

use webfiori\framework\App;
use webfiori\framework\autoload\ClassLoader;
use webfiori\framework\config\JsonDriver;

$DS = DIRECTORY_SEPARATOR;

Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit 3b28b1b

Please sign in to comment.