Skip to content

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

Merged
konradoboza merged 1 commit into
6.0from
phpunit-11
Sep 16, 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:

  • Bumped phpunit/phpunit to ^11.5 and added symfony/phpunit-bridge ^7.4 (require-dev). No matthiasnoback/dama dependencies in this repo.
  • Migrated phpunit.xml to the PHPUnit 11 schema: added the xsi:noNamespaceSchemaLocation (was missing entirely), cacheDirectory=".phpunit.cache", and registered Symfony\Bridge\PhpUnit\SymfonyExtension via <extensions><bootstrap>.
  • Converted PHPUnit annotations to attributes with real use imports (not FQCN) across 5 test files: @covers#[CoversClass] (DatabasePlatformResolverTest, SqliteDbPlatformTest), @dataProvider#[DataProvider] + made providers static (DatabasePlatformResolverTest, SchemaExporterTest, SchemaImporterTest), @group legacy#[Group('legacy')] (SchemaImporterTest).
  • Reviewed 2 createMock()createStub() conversions applied by Rector (SchemaBuilderTest, DatabasePlatformResolverTest): both mocks have no expects() calls, so the stub conversion is correct.
  • Added .phpunit.cache/ to .gitignore.

For QA:

N/A

Documentation:

N/A

@sonarqubecloud

Copy link
Copy Markdown

@konradoboza
konradoboza merged commit ed7550d into 6.0 Sep 16, 2026
11 checks passed
@konradoboza
konradoboza deleted the phpunit-11 branch September 16, 2026 12:44
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