diff --git a/.github/workflows/phpunit.yml b/.github/workflows/phpunit.yml index e57fe82..f25a183 100644 --- a/.github/workflows/phpunit.yml +++ b/.github/workflows/phpunit.yml @@ -50,5 +50,10 @@ jobs: if: ${{ matrix.dependencies == 'highest' }} run: "composer update --no-interaction --no-progress" - - name: "Tests" + - name: "Tests (PHPUnit 9)" + if: ${{ matrix.php-version <= '8.0' }} + run: "vendor/bin/phpunit --configuration phpunit9.xml.dist" + + - name: "Tests (PHPUnit 10+)" + if: ${{ matrix.php-version >= '8.1' }} run: "vendor/bin/phpunit" diff --git a/phpunit.xml.dist b/phpunit.xml.dist index ab4e9d3..21263b8 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,26 +1,24 @@ + stopOnFailure="false"> - - src/ - + + + src/ + + tests diff --git a/phpunit9.xml.dist b/phpunit9.xml.dist new file mode 100644 index 0000000..ab4e9d3 --- /dev/null +++ b/phpunit9.xml.dist @@ -0,0 +1,32 @@ + + + + + src/ + + + + + + + + + + tests + + + + + +