Skip to content

IBX-12606: Migrated the test suites to PHPUnit 11 - #122

Merged
konradoboza merged 1 commit into
6.0from
phpunit-11
Sep 17, 2026
Merged

konradoboza merged 1 commit into
6.0from
phpunit-11

Conversation

@ViniTou

@ViniTou ViniTou commented Sep 15, 2026

Copy link
Copy Markdown
Contributor
🎫 Issue IBX-12606
---------------- ----

Description:

  • Migrated the test suites from PHPUnit 9 to PHPUnit 11 (phpunit/phpunit ^11.5, matthiasnoback/symfony-dependency-injection-test ^6.0).
  • Migrated phpunit.xml.dist and phpunit.integration.xml.dist to the 11.5 schema (dropped removed config attributes, added cacheDirectory).
  • Converted @dataProvider/@covers annotations to #[DataProvider]/#[CoversClass] attributes and made data providers static.
  • Replaced createMock() with createStub() where no expectations are set on the double, and renamed getInvocationCount() to numberOfInvocations().
  • Renamed the abstract test base classes BaseMapperTest/AbstractGroupedContentFormFieldsProviderTest to *TestCase (PHPUnit 11 warns/fails on concrete-looking *Test classes that are abstract) and updated their consumers and the PHPStan baseline accordingly.
  • Added .phpunit.cache/ to .gitignore.

For QA:

N/A

Documentation:

N/A

@sonarqubecloud

Copy link
Copy Markdown

@konradoboza
konradoboza merged commit 218f7e7 into 6.0 Sep 17, 2026
15 checks passed
@konradoboza
konradoboza deleted the phpunit-11 branch September 17, 2026 09:06
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.

4 participants