From f3214b85a1e64b39c76d94f968ebbd5d645a3593 Mon Sep 17 00:00:00 2001 From: Ben Date: Tue, 28 Jul 2026 17:54:27 +0100 Subject: [PATCH 1/4] chore: add Pest 5 support --- composer.json | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/composer.json b/composer.json index 59e1f51..1fd6939 100644 --- a/composer.json +++ b/composer.json @@ -11,12 +11,12 @@ ], "require": { "php": "^8.3", - "pestphp/pest-plugin": "^3.0|^4.0" + "pestphp/pest-plugin": "^3.0|^4.0|^5.0" }, "require-dev": { "orchestra/testbench": "^9.0|^10.0|^11.0", - "pestphp/pest": "^3.0|^4.1", - "pestphp/pest-plugin-laravel": "^3.0|^4.0", + "pestphp/pest": "^5.0", + "pestphp/pest-plugin-laravel": "^5.0", "laravel/pint": "^1.25" }, "autoload": { @@ -38,7 +38,8 @@ }, "scripts": { "lint": "pint", - "test": "pest --colors=always" + "test": "pest --colors=always", + "test:tia": "pest --colors=always --tia" }, "config": { "sort-packages": true, From d945e315dc8289e2653c62f9474cdb2dd84a07cb Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 29 Jul 2026 06:31:18 +0100 Subject: [PATCH 2/4] ci: test Pest compatibility by PHP version --- .github/workflows/tests.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ce8c24f..128674b 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -28,6 +28,10 @@ jobs: php-version: ${{ matrix.php }} coverage: none + - name: Select PHP-compatible Pest test tooling + if: matrix.php == '8.3' + run: composer require --dev --no-update pestphp/pest:^4.1 pestphp/pest-plugin-laravel:^4.0 + - name: Install dependencies run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --prefer-dist From 15bc152b6bcac0cf77b1c6e6ef42e51a861ef391 Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 29 Jul 2026 06:33:58 +0100 Subject: [PATCH 3/4] chore: require PHP 8.4 for Pest 5 --- .github/workflows/tests.yml | 6 +----- composer.json | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 128674b..248eddc 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - php: ['8.3', '8.4'] + php: ['8.4'] dependency-version: [prefer-lowest, prefer-stable] name: PHP ${{ matrix.php }} - ${{ matrix.dependency-version }} @@ -28,10 +28,6 @@ jobs: php-version: ${{ matrix.php }} coverage: none - - name: Select PHP-compatible Pest test tooling - if: matrix.php == '8.3' - run: composer require --dev --no-update pestphp/pest:^4.1 pestphp/pest-plugin-laravel:^4.0 - - name: Install dependencies run: composer update --${{ matrix.dependency-version }} --no-interaction --no-progress --prefer-dist diff --git a/composer.json b/composer.json index 1fd6939..b8dec83 100644 --- a/composer.json +++ b/composer.json @@ -10,7 +10,7 @@ } ], "require": { - "php": "^8.3", + "php": "^8.4", "pestphp/pest-plugin": "^3.0|^4.0|^5.0" }, "require-dev": { From a51d8ec118a20603edc2477ccb7e14dbe8f44525 Mon Sep 17 00:00:00 2001 From: Ben Date: Wed, 29 Jul 2026 06:37:21 +0100 Subject: [PATCH 4/4] chore: require Pest 5 plugin API --- composer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composer.json b/composer.json index b8dec83..20e6efc 100644 --- a/composer.json +++ b/composer.json @@ -11,7 +11,7 @@ ], "require": { "php": "^8.4", - "pestphp/pest-plugin": "^3.0|^4.0|^5.0" + "pestphp/pest-plugin": "^5.0" }, "require-dev": { "orchestra/testbench": "^9.0|^10.0|^11.0",