diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 585c94b2..49e8afd1 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -60,4 +60,4 @@ jobs: composer update --prefer-dist --no-interaction --no-progress --with="illuminate/contracts:^${{ matrix.laravel }}" - name: Execute tests - run: vendor/bin/phpunit ${{ matrix.laravel >= 10 && '--display-deprecations --fail-on-deprecation' || '' }} + run: vendor/bin/phpunit --fail-on-risky --fail-on-warning --stop-on-error --stop-on-failure ${{ matrix.laravel >= 10 && '--fail-on-deprecation' || '' }} diff --git a/.gitignore b/.gitignore index 9845be0a..a9a34875 100644 --- a/.gitignore +++ b/.gitignore @@ -4,3 +4,4 @@ /phpunit.xml composer.lock .phpunit.result.cache +.phpunit.cache/ diff --git a/composer.json b/composer.json index 44bc3c66..253935ed 100644 --- a/composer.json +++ b/composer.json @@ -27,13 +27,13 @@ "require-dev": { "mockery/mockery": "^1.0", "orchestra/testbench": "^7.0|^8.0|^9.0|^10.0", - "phpstan/phpstan": "^1.10", - "phpunit/phpunit": "^9.0|^10.4|^11.5", - "predis/predis": "^1.1|^2.0" + "phpstan/phpstan": "^1.10|^2.0", + "phpunit/phpunit": "^9.0|^10.4|^11.5|^12.0", + "predis/predis": "^1.1|^2.0|^3.0" }, "suggest": { "ext-redis": "Required to use the Redis PHP driver.", - "predis/predis": "Required when not using the Redis PHP driver (^1.1|^2.0)." + "predis/predis": "Required when not using the Redis PHP driver (^1.1|^2.0|^3.0)." }, "autoload": { "psr-4": { diff --git a/phpunit.xml.dist b/phpunit.xml.dist index 7f532705..ae7f8df9 100644 --- a/phpunit.xml.dist +++ b/phpunit.xml.dist @@ -1,19 +1,14 @@