Skip to content

Commit

Permalink
update minimum supported versions of PHP and Swoole, and improve unit…
Browse files Browse the repository at this point in the history
… tests
  • Loading branch information
deminy committed Sep 24, 2023
1 parent 439d1c9 commit 9ba575a
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on: [ push, pull_request, workflow_dispatch ]

jobs:
ci:
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
strategy:
fail-fast: true
matrix:
php: ["8.0", "8.1"]
php: ["8.0", "8.1", "8.2"]

name: Under PHP ${{ matrix.php }}

Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
"issues": "https://github.com/swoole/library"
},
"require": {
"php": ">=7.2",
"ext-swoole": ">=4.6"
"php": ">=8.0",
"ext-swoole": ">=5.0"
},
"require-dev": {
"ext-sockets": "*",
"ext-json": "*",
"ext-redis": "*",
"ext-curl": "*",
"phpunit/phpunit": "~8.0",
"swoole/ide-helper": "~4.6",
"phpunit/phpunit": "~9.0",
"swoole/ide-helper": "~5.0",
"friendsofphp/php-cs-fixer": "^3.0"
},
"suggest": {
Expand Down
4 changes: 2 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ services:

consul:
container_name: swoole-library-consul
image: consul
image: consul:1.15
command:
consul agent -dev -client=0.0.0.0
ports:
Expand All @@ -93,4 +93,4 @@ volumes:

networks:
default:
name: swoole-library-network
name: swoole-library-network
2 changes: 1 addition & 1 deletion tests/unit/Curl/HandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public function testToString()
{
Coroutine\run(function () {
$ch = curl_init();
self::assertRegExp('/Object\(\w+\) of type \(curl\)/', (string) $ch);
self::assertMatchesRegularExpression('/Object\(\w+\) of type \(curl\)/', (string) $ch);
});
}

Expand Down

0 comments on commit 9ba575a

Please sign in to comment.