chore(deps): update dependency phpunit/phpunit to v12#367
Conversation
- Update minimum PHP version from 8.2 to 8.3 (required by PHPUnit 12) - Upgrade PHPUnit from 9.6.23 to 12.4.4 - Remove tests-8.2.yml workflow (no longer compatible) - Update release.yml workflow to use PHP 8.3 - Update documentation to reflect PHP 8.3 requirement - Update composer platform config to PHP 8.3 PHPUnit 12 requires PHP 8.3+ which necessitates these breaking changes.
- Replace assertContains() with assertStringContainsString() for string checks - Replace deprecated setMethods() with onlyMethods() in mock builders - Fix lowercase setup() methods to setUp(): void - Replace deprecated returnValue() with willReturn() - Update phpunit.xml schema to PHPUnit 12.0 These changes address the critical blocking issues identified in PR #354.
Code Review - PHPUnit 12 UpgradeOverviewThis PR upgrades PHPUnit from version 9.6.23 to 12.4.4 and increases the minimum PHP requirement from 8.2 to 8.3. This is a necessary breaking change as PHPUnit 12 requires PHP 8.3+. Positive Aspects ✅
Issues & Recommendations 🔍Critical IssuesNone identified - the upgrade appears complete and well-executed. Minor Observations
Security Considerations ✅
Testing RecommendationsBefore merging, please verify:
Performance ConsiderationsPHPUnit 12 includes performance improvements over version 9, particularly in:
This should result in faster test execution overall. ✅ ConclusionThis is a well-executed upgrade that properly handles all the breaking changes between PHPUnit 9 and 12. The test updates are comprehensive and follow PHPUnit 12 best practices. Recommendation: ✅ Approve with minor suggestions The main action item is ensuring users are properly informed about the PHP 8.3 requirement through release notes and version bumping. Great work on the thorough migration! 🎉 |
No description provided.