Skip to content

Add PHPUnit 10-13 support#217

Open
JJCLane wants to merge 2 commits intoCodeception:masterfrom
JJCLane:claude/phpunit-version-support-D2P0v
Open

Add PHPUnit 10-13 support#217
JJCLane wants to merge 2 commits intoCodeception:masterfrom
JJCLane:claude/phpunit-version-support-D2P0v

Conversation

@JJCLane
Copy link
Contributor

@JJCLane JJCLane commented Feb 14, 2026

No description provided.

JJCLane and others added 2 commits February 6, 2026 16:03
- Widen phpunit/phpunit constraint from ^9.5 to ^9.5 | ^10.0 | ^11.0 | ^12.0 | ^13.0
- Widen symfony/finder constraint to include ^7.0
- Widen codeception/codeception dev constraint to include ^5.0
- Replace deprecated PHPUnit_ prefixed class references with modern
  PHPUnit\Framework\ namespaced equivalents (removed in PHPUnit 10):
  - UserModel.php: \PHPUnit_Framework_AssertionFailedError
  - codeception.yml: \PHPUnit_Framework_TestSuite
  - README.md: \PHPUnit_Framework_TestCase
- Add void return type to tearDown() in README example for PHPUnit 10+

The core library (Verifier.php) already uses stable modern PHPUnit APIs
(Assert::assertTrue, ExpectationFailedException) that are compatible
across all supported versions.

https://claude.ai/code/session_01JmkRkNzxZmpB8pRLLTs3Fk
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