Revisiones

This commit is contained in:
Juan Pablo Vial
2025-06-25 12:22:01 -04:00
parent ca1ed3f870
commit 9edf0d9120
8 changed files with 114 additions and 5 deletions

View File

@ -171,8 +171,8 @@ spl_autoload_register(function($className) {
});
$bootstrap = new TestBootstrap($_ENV);
$resetDatabase = ($_ENV['RESET_DATABASE'] === 'true') ?? false;
$debug = ($_ENV['DEBUG'] === 'true') ?? false;
$resetDatabase = (array_key_exists('RESET_DATABASE', $_ENV) and $_ENV['RESET_DATABASE'] === 'true') ?? false;
$debug = (array_key_exists('DEBUG', $_ENV) and $_ENV['DEBUG'] === 'true') ?? false;
Benchmark::execute([$bootstrap, 'run'], ['debug' => $debug]);
Benchmark::print();