add state and ctrl+C support for windows

This commit is contained in:
crazywhalecc
2022-09-26 22:44:41 +08:00
parent cf3f09600b
commit a4f992b9e5
14 changed files with 143 additions and 108 deletions

View File

@@ -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');
}