From fe415982edde485b8efd397531702003dab68603 Mon Sep 17 00:00:00 2001 From: Yada Clintjens Date: Fri, 24 Nov 2023 13:27:06 +0100 Subject: [PATCH] Run tests on PHP 8.3 and update test suite --- .github/workflows/ci.yml | 5 +++-- composer.json | 10 +++++++--- phpunit.xml.dist | 9 ++++++--- phpunit.xml.legacy | 5 ++++- 4 files changed, 20 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 21bdbe4..c6239b6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,6 +11,7 @@ jobs: strategy: matrix: php: + - 8.3 - 8.2 - 8.1 - 8.0 @@ -24,7 +25,7 @@ jobs: - 5.4 - 5.3 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - uses: shivammathur/setup-php@v2 with: php-version: ${{ matrix.php }} @@ -40,7 +41,7 @@ jobs: runs-on: ubuntu-22.04 continue-on-error: true steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - run: cp "$(which composer)" composer.phar && ./composer.phar self-update --2.2 # downgrade Composer for HHVM - name: Run hhvm composer.phar install uses: docker://hhvm/hhvm:3.30-lts-latest diff --git a/composer.json b/composer.json index 26acd78..0334e59 100644 --- a/composer.json +++ b/composer.json @@ -11,10 +11,14 @@ } ], "autoload": { - "psr-4": { "Clue\\React\\Mdns\\": "src/" } + "psr-4": { + "Clue\\React\\Mdns\\": "src/" + } }, "autoload-dev": { - "psr-4": { "Clue\\Tests\\React\\Mdns\\": "tests/" } + "psr-4": { + "Clue\\Tests\\React\\Mdns\\": "tests/" + } }, "require": { "php": ">=5.3", @@ -24,6 +28,6 @@ "react/promise": "^2.1 || ^1.2.1" }, "require-dev": { - "phpunit/phpunit": "^9.3 || ^5.7 || ^4.8.36" + "phpunit/phpunit": "^9.6 || ^5.7 || ^4.8.36" } } diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 8c5010a..108fd75 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,8 +1,8 @@ - - +./src/ + + + diff --git a/phpunit.xml.legacy b/phpunit.xml.legacy index 0b4f05b..f0bcdde 100644 --- a/phpunit.xml.legacy +++ b/phpunit.xml.legacy @@ -1,6 +1,6 @@ - + ./src/ + + +