Skip to content

Upgrade PHPUnit to ^12.5, modernize all tests#92

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

Upgrade PHPUnit to ^12.5, modernize all tests#92
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 AbstractStyleTest
  • Replace getMockBuilder() chains with createMock/createStub (getMockBuilder was removed in PHPUnit 12)
  • Convert @dataProvider annotations to #[DataProvider] attributes
  • Add #[CoversClass] attributes to all test classes
  • Add :void return type to all test methods
  • Replace array() with [] in data providers

- Upgrade phpunit/phpunit from ^10.0 to ^12.5
- Update phpunit.xml.dist to PHPUnit 12 schema
- Replace getMockForAbstractClass() with concrete anonymous
  subclass in AbstractStyleTest
- Replace getMockBuilder() chains with createMock/createStub
  (getMockBuilder was removed in PHPUnit 12)
- Convert @dataProvider annotations to #[DataProvider] attributes
- Add #[CoversClass] attributes to all test classes
- Add :void return type to all test methods
- Replace array() with [] in data providers
@alganet alganet marked this pull request as ready for review March 15, 2026 02:15
@alganet alganet merged commit fff8271 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