From da27303c92022454ffd425e32c3a6ec4fdc7b66b Mon Sep 17 00:00:00 2001 From: Yada Clintjens Date: Wed, 17 Jan 2024 09:15:01 +0100 Subject: [PATCH] Run tests on PHP 8.3 and update test suite --- .github/workflows/ci.yml | 7 +++++-- composer.json | 10 +++++++--- phpunit.xml.dist | 12 ++++++++---- phpunit.xml.legacy | 5 ++++- 4 files changed, 24 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a616b3f..b521e6d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,10 +7,13 @@ on: jobs: PHPUnit: name: PHPUnit (PHP ${{ matrix.php }}) - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 strategy: matrix: php: + - 8.3 + - 8.2 + - 8.1 - 8.0 - 7.4 - 7.3 @@ -22,7 +25,7 @@ jobs: - 5.4 - 5.3 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} diff --git a/composer.json b/composer.json index 0de5241..3c3f0f4 100644 --- a/composer.json +++ b/composer.json @@ -11,10 +11,14 @@ } ], "autoload": { - "psr-4" : { "Clue\\React\\Shell\\": "src/" } + "psr-4" : { + "Clue\\React\\Shell\\": "src/" + } }, "autoload-dev": { - "psr-4": { "Clue\\Tests\\React\\Shell\\": "tests/" } + "psr-4": { + "Clue\\Tests\\React\\Shell\\": "tests/" + } }, "require": { "php": ">=5.3", @@ -24,6 +28,6 @@ "react/promise": "^2.0 || ^1.0" }, "require-dev": { - "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.35" + "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36" } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 8ef3e91..7a7aa2c 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,11 +1,12 @@ - - + + convertDeprecationsToExceptions="true"> ./tests/ @@ -16,4 +17,7 @@ ./src/ + + + diff --git a/phpunit.xml.legacy b/phpunit.xml.legacy index dc15861..45513ae 100644 --- a/phpunit.xml.legacy +++ b/phpunit.xml.legacy @@ -1,6 +1,6 @@ - + ./src/ + + +