mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 16:45:35 +08:00
change risky test
This commit is contained in:
@@ -48,12 +48,12 @@ class ZMConfigTest extends TestCase
|
|||||||
*/
|
*/
|
||||||
public function testReload()
|
public function testReload()
|
||||||
{
|
{
|
||||||
|
$this->expectOutputRegex('/没读取过,正在从文件加载/');
|
||||||
$this->assertEquals('0.0.0.0', ZMConfig::get('global.host'));
|
$this->assertEquals('0.0.0.0', ZMConfig::get('global.host'));
|
||||||
ZMConfig::reload();
|
ZMConfig::reload();
|
||||||
Console::setLevel(4);
|
Console::setLevel(4);
|
||||||
$this->assertEquals('0.0.0.0', ZMConfig::get('global.host'));
|
$this->assertEquals('0.0.0.0', ZMConfig::get('global.host'));
|
||||||
Console::setLevel(0);
|
Console::setLevel(0);
|
||||||
$this->assertStringContainsString('没读取过,正在从文件加载', $this->getActualOutput());
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function testSetAndRestoreDirectory()
|
public function testSetAndRestoreDirectory()
|
||||||
|
|||||||
Reference in New Issue
Block a user