Ai_GirlFriend/xunifriend_RaeeC/vendor/maniac/easemob-php/tests/AttachmentTest.php
2026-01-31 19:15:41 +08:00

20 lines
612 B
PHP

<?php
namespace tests;
class AttachmentTest extends Base
{
public function __construct()
{
parent::__construct();
}
public function testAttachmentUploadDownload()
{
$data = $this->attachment->uploadFile(dirname(__FILE__).'/assets/1.png');
$this->assertArrayHasKey('uuid', $data);
$this->assertIsInt($this->attachment->downloadFile(dirname(__FILE__).'/assets/11.png', $data['uuid'], $data['share-secret']));
$this->assertIsInt($this->attachment->downloadThumb(dirname(__FILE__).'/assets/11_thumb.png', $data['uuid'], $data['share-secret']));
}
}