Skip to content

Upgrade Pest PHP from v4 to v5 - #215

Merged
paulocastellano merged 1 commit into
mainfrom
cursor/upgrade-pest-v5-b5a2
Jul 31, 2026
Merged

Upgrade Pest PHP from v4 to v5#215
paulocastellano merged 1 commit into
mainfrom
cursor/upgrade-pest-v5-b5a2

Conversation

@paulocastellano

@paulocastellano paulocastellano commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Summary

Upgrades the test stack from Pest 4 / PHPUnit 12 to Pest 5 / PHPUnit 13, following the Pest upgrade guide.

Dependency changes

  • pestphp/pest: ^4.4^5.0 (resolved v5.0.2)
  • pestphp/pest-plugin-laravel: ^4.1^5.0 (resolved v5.0.1)
  • pestphp/pest-plugin-browser: ^4.3^5.0 (resolved v5.0.0)
  • phpunit/phpunit: 12.5.x13.2.6
  • laravel/framework: 13.15.013.23.0 (required by pest-plugin-laravel v5.0.1, which needs ^13.23.0)
  • nunomaduro/collision: 8.9.48.9.5 (required by Pest 5)

Docs / agent guidance

Updated Pest/PHPUnit version references in AGENTS.md, CLAUDE.md, GEMINI.md, Cursor rules, Copilot instructions, and the Pest testing skill.

Verification

  • phpunit.xml did not need --migrate-configuration
  • No test code changes were required for PHPUnit 13 removed APIs
  • Local runs on Pest 5:
    • tests/Unit + tests/Feature/Auth + tests/Feature/Workspace749 passed, 1 skipped
    • Sample API/MCP tests (after Passport keys) — passed

Notes

  • Pest 5 requires PHP ≥ 8.4
  • No application source changes beyond dependency + docs updates
Open in Web Open in Cursor 

Bump pestphp/pest, pest-plugin-laravel, and pest-plugin-browser to ^5.0.
pest-plugin-laravel v5 requires Laravel ^13.23, so the framework lock is
updated accordingly. Refresh agent docs/skills for the Pest 5 / PHPUnit 13
baseline.

Co-authored-by: Paulo Castellano <hello@paulocastellano.com>
@paulocastellano
paulocastellano marked this pull request as ready for review July 31, 2026 01:54
@paulocastellano
paulocastellano merged commit 7be4610 into main Jul 31, 2026
5 checks passed
@paulocastellano
paulocastellano deleted the cursor/upgrade-pest-v5-b5a2 branch July 31, 2026 01:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants