mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-02 14:25:38 +08:00
add state and ctrl+C support for windows
This commit is contained in:
@@ -102,7 +102,7 @@ class MessageUtilTest extends TestCase
|
||||
|
||||
public function testGetImageCQFromLocal(): void
|
||||
{
|
||||
file_put_contents('/tmp/test.jpg', 'test');
|
||||
file_put_contents(TMP_DIR . '/test.jpg', 'test');
|
||||
$this->assertEquals('[CQ:image,file=base64://' . base64_encode('test') . ']', MessageUtil::getImageCQFromLocal('/tmp/test.jpg'));
|
||||
unlink('/tmp/test.jpg');
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user