fix(test): fix redundant terminal output during phpunit (#1194)

This commit is contained in:
Jerry Ma
2026-06-22 08:08:47 +08:00
committed by GitHub
parent 408d8f755c
commit 227b8f0b0a
16 changed files with 844 additions and 51 deletions

View File

@@ -21,6 +21,8 @@ class GlobalsFunctionsTest extends TestCase
protected function tearDown(): void
{
$GLOBALS['spc_log_filters'] = null;
// Restore logger level to avoid polluting other tests with DEBUG noise
logger()->setLevel(LogLevel::ERROR);
}
public function testAddLogFilterDeduplicates(): void