Skip to content

Upgrade PHPUnit to ^12.5, modernize all tests#8

Merged
alganet merged 1 commit intoRespect:masterfrom
alganet:phpunit-12
Mar 15, 2026
Merged

Upgrade PHPUnit to ^12.5, modernize all tests#8
alganet merged 1 commit intoRespect:masterfrom
alganet:phpunit-12

Conversation

@alganet
Copy link
Member

@alganet alganet commented Mar 15, 2026

  • Upgrade phpunit/phpunit from ^10.0 to ^12.5
  • Update phpunit.xml.dist to PHPUnit 12 schema
  • Replace getMockForAbstractClass() with concrete anonymous subclass in AbstractMapperTest (getMockForAbstractClass was removed in PHPUnit 12)
  • Add #[CoversClass] and #[Test] attributes to all test classes
  • Add public visibility and :void return type to all test methods
  • Use TestCase import instead of FQCN

- Upgrade phpunit/phpunit from ^10.0 to ^12.5
- Update phpunit.xml.dist to PHPUnit 12 schema
- Replace getMockForAbstractClass() with concrete anonymous
  subclass in AbstractMapperTest (getMockForAbstractClass was
  removed in PHPUnit 12)
- Add #[CoversClass] and #[Test] attributes to all test classes
- Add public visibility and :void return type to all test methods
- Use TestCase import instead of FQCN
@alganet alganet marked this pull request as ready for review March 15, 2026 02:14
@alganet alganet merged commit 08c3f95 into Respect:master Mar 15, 2026
2 checks passed
@alganet alganet deleted the phpunit-12 branch March 15, 2026 02:16
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.

1 participant