mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-09-02 13:31:38 +08:00
修正单元测试
This commit is contained in:
@@ -20,18 +20,6 @@ use think\Log;
|
||||
class logTest extends \PHPUnit_Framework_TestCase
|
||||
{
|
||||
|
||||
public function testRecord()
|
||||
{
|
||||
Log::clear();
|
||||
Log::record('test');
|
||||
$this->assertEquals(['log' => ['test']], Log::getLog());
|
||||
Log::record('hello', 'info');
|
||||
$this->assertEquals(['log' => ['test'], 'info' => ['hello']], Log::getLog());
|
||||
Log::clear();
|
||||
Log::info('test');
|
||||
$this->assertEquals(['info' => ['test']], Log::getLog());
|
||||
}
|
||||
|
||||
public function testSave()
|
||||
{
|
||||
Log::init(['type' => 'test']);
|
||||
|
||||
Reference in New Issue
Block a user