mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-24 00:55:35 +08:00
test --enable-openssl option
This commit is contained in:
2
.github/workflows/integration-test.yml
vendored
2
.github/workflows/integration-test.yml
vendored
@@ -37,6 +37,8 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
php-version: ${{ matrix.php-versions }}
|
php-version: ${{ matrix.php-versions }}
|
||||||
extensions: swoole, posix, json
|
extensions: swoole, posix, json
|
||||||
|
env:
|
||||||
|
SWOOLE_CONFIGURE_OPTS: --enable-openssl
|
||||||
|
|
||||||
- name: Setup problem matchers for PHP
|
- name: Setup problem matchers for PHP
|
||||||
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
|
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
|
||||||
|
|||||||
@@ -162,7 +162,7 @@ class MessageUtilTest extends TestCase
|
|||||||
if (file_exists(DataProvider::getDataFolder('images') . '/test.jpg')) {
|
if (file_exists(DataProvider::getDataFolder('images') . '/test.jpg')) {
|
||||||
unlink(DataProvider::getDataFolder('images') . '/test.jpg');
|
unlink(DataProvider::getDataFolder('images') . '/test.jpg');
|
||||||
}
|
}
|
||||||
$msg = '[CQ:image,file=test.jpg,url=http://zhamao.xin/file/hello.jpg]';
|
$msg = '[CQ:image,file=test.jpg,url=https://zhamao.xin/file/hello.jpg]';
|
||||||
$result = MessageUtil::downloadCQImage($msg);
|
$result = MessageUtil::downloadCQImage($msg);
|
||||||
$this->assertIsArray($result);
|
$this->assertIsArray($result);
|
||||||
$this->assertCount(1, $result);
|
$this->assertCount(1, $result);
|
||||||
|
|||||||
Reference in New Issue
Block a user