Skip to content

Commit 2bdb692

Browse files
committed
单元测试修正
1 parent 367b785 commit 2bdb692

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/LogTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public function testFileLog()
6969

7070
$this->log->info('foo');
7171

72-
$this->assertEquals([['info', 'foo']], array_map(fn($log) => [$log['type'], $log['message']], $this->log->getLog()));
72+
$this->assertEquals([['info', 'foo']], array_map(fn($log) => [$log->type, $log->message], $this->log->getLog()));
7373

7474
$this->log->clear();
7575

@@ -95,7 +95,7 @@ public function testFileLog()
9595
['debug', 'foo'],
9696
['sql', 'foo'],
9797
['custom', 'foo'],
98-
], array_map(fn($log) => [$log['type'], $log['message']], $this->log->getLog()));
98+
], array_map(fn($log) => [$log->type, $log->message], $this->log->getLog()));
9999

100100
$this->log->write('foo');
101101
$this->assertTrue($root->hasChildren());

0 commit comments

Comments
 (0)