update to build 418

This commit is contained in:
2021-09-10 11:24:32 +08:00
parent e2f49968b3
commit 2b4d308783
9 changed files with 124 additions and 3 deletions

View File

@@ -0,0 +1,27 @@
<?php
namespace ZM\Utils;
use PHPUnit\Framework\TestCase;
use ZM\Config\ZMConfig;
use ZM\Console\Console;
use ZM\Store\LightCacheInside;
use ZM\Store\ZMAtomic;
class TerminalTest extends TestCase
{
public function setUp(): void {
}
public function testExecuteCommand() {
ob_start();
Terminal::executeCommand("logtest");
$this->assertStringContainsString("debug msg", ob_get_clean());
}
public function testBc() {
ob_start();
Terminal::executeCommand("bc ".base64_encode("echo 'hello';"));
$this->assertStringContainsString("hello", ob_get_clean());
}
}