From f5cbce5195dad60b13c62262bf0a4a57fec6d762 Mon Sep 17 00:00:00 2001 From: crazywhalecc Date: Sat, 2 Apr 2022 02:18:31 +0800 Subject: [PATCH] test --enable-openssl option --- .github/workflows/integration-test.yml | 2 ++ tests/ZM/Utils/MessageUtilTest.php | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-test.yml b/.github/workflows/integration-test.yml index cde0c4ad..d1be2dba 100644 --- a/.github/workflows/integration-test.yml +++ b/.github/workflows/integration-test.yml @@ -37,6 +37,8 @@ jobs: with: php-version: ${{ matrix.php-versions }} extensions: swoole, posix, json + env: + SWOOLE_CONFIGURE_OPTS: --enable-openssl - name: Setup problem matchers for PHP run: echo "::add-matcher::${{ runner.tool_cache }}/php.json" diff --git a/tests/ZM/Utils/MessageUtilTest.php b/tests/ZM/Utils/MessageUtilTest.php index 8456e3f3..d51373c7 100644 --- a/tests/ZM/Utils/MessageUtilTest.php +++ b/tests/ZM/Utils/MessageUtilTest.php @@ -162,7 +162,7 @@ class MessageUtilTest extends TestCase if (file_exists(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); $this->assertIsArray($result); $this->assertCount(1, $result);