From 1d70bc4ed781ced842aacf8d1f2e5503862e6cf7 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Tue, 10 May 2022 16:03:37 +0800 Subject: [PATCH] change risky test --- tests/ZM/Config/ZMConfigTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ZM/Config/ZMConfigTest.php b/tests/ZM/Config/ZMConfigTest.php index de54d16e..782a7f85 100644 --- a/tests/ZM/Config/ZMConfigTest.php +++ b/tests/ZM/Config/ZMConfigTest.php @@ -48,12 +48,12 @@ class ZMConfigTest extends TestCase */ public function testReload() { + $this->expectOutputRegex('/没读取过,正在从文件加载/'); $this->assertEquals('0.0.0.0', ZMConfig::get('global.host')); ZMConfig::reload(); Console::setLevel(4); $this->assertEquals('0.0.0.0', ZMConfig::get('global.host')); Console::setLevel(0); - $this->assertStringContainsString('没读取过,正在从文件加载', $this->getActualOutput()); } public function testSetAndRestoreDirectory()