mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 23:55:35 +08:00
fix tests
This commit is contained in:
@@ -17,10 +17,12 @@ class Kernel
|
||||
|
||||
private string $environment;
|
||||
|
||||
private bool $debug_mode;
|
||||
private bool $debug_mode = false;
|
||||
|
||||
private string $log_level;
|
||||
|
||||
private bool $test_mode = false;
|
||||
|
||||
private function __construct()
|
||||
{
|
||||
$this->registerBootstrappers([
|
||||
@@ -106,7 +108,12 @@ class Kernel
|
||||
|
||||
public function runningUnitTests(): bool
|
||||
{
|
||||
return $this->environment('testing');
|
||||
return $this->test_mode;
|
||||
}
|
||||
|
||||
public function setTestMode(bool $test_mode): void
|
||||
{
|
||||
$this->test_mode = $test_mode;
|
||||
}
|
||||
|
||||
public function registerBootstrappers(array $bootstrappers): void
|
||||
|
||||
Reference in New Issue
Block a user