From 9eb633253fb4595c51c41223de1973cdf6ca789f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Christian=20L=C3=BCck?= Date: Sun, 1 Oct 2023 12:40:11 +0200 Subject: [PATCH] Run tests on PHP 8.3 and update test suite --- .github/workflows/ci.yml | 6 ++++-- composer.json | 8 +++++--- phpunit.xml.dist | 4 ++-- src/functions_include.php | 3 ++- 4 files changed, 13 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 75213de..749ba36 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,10 +11,11 @@ jobs: strategy: matrix: php: + - 8.3 - 8.2 - 8.1 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} @@ -29,10 +30,11 @@ jobs: strategy: matrix: php: + - 8.3 - 8.2 - 8.1 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} diff --git a/composer.json b/composer.json index 848dd38..9c2f076 100644 --- a/composer.json +++ b/composer.json @@ -31,8 +31,8 @@ "react/promise": "^3.0 || ^2.8 || ^1.2.1" }, "require-dev": { - "phpstan/phpstan": "1.10.18", - "phpunit/phpunit": "^9.5" + "phpstan/phpstan": "1.10.39", + "phpunit/phpunit": "^9.6" }, "autoload": { "psr-4": { @@ -43,6 +43,8 @@ ] }, "autoload-dev": { - "psr-4": { "React\\Tests\\Async\\": "tests/" } + "psr-4": { + "React\\Tests\\Async\\": "tests/" + } } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 63ec536..bc79560 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,7 +1,7 @@ - + diff --git a/src/functions_include.php b/src/functions_include.php index 92a7439..05c78fa 100644 --- a/src/functions_include.php +++ b/src/functions_include.php @@ -3,6 +3,7 @@ namespace React\Async; // @codeCoverageIgnoreStart -if (!function_exists(__NAMESPACE__ . '\\parallel')) { +if (!\function_exists(__NAMESPACE__ . '\\parallel')) { require __DIR__ . '/functions.php'; } +// @codeCoverageIgnoreEnd