mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-17 20:54:52 +08:00
Fix ZM_TEST_LOG_DEBUG bug, remove redundant code
This commit is contained in:
parent
d95a5131f6
commit
f1c730962b
@ -88,9 +88,8 @@ $framework = new Framework($options);
|
|||||||
$start = new OnStart();
|
$start = new OnStart();
|
||||||
$start->method = function () {
|
$start->method = function () {
|
||||||
try {
|
try {
|
||||||
Console::setLevel(ZM_TEST_LOG_DEBUG);
|
Console::setLevel(ZM_TEST_LOG_DEBUG ? 4 : 0);
|
||||||
$retcode = PHPUnit\TextUI\Command::main(false);
|
$retcode = PHPUnit\TextUI\Command::main(false);
|
||||||
Console::setLevel(0);
|
|
||||||
} finally {
|
} finally {
|
||||||
Console::setLevel(0);
|
Console::setLevel(0);
|
||||||
ZMUtil::stop(($retcode ?? 1) !== 0);
|
ZMUtil::stop(($retcode ?? 1) !== 0);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user