IBX-12606: Migrated the test suites to PHPUnit 11 - #51
Merged
Merged
Conversation
mikadamczyk
approved these changes
Sep 16, 2026
mikadamczyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good, only the conflict needs to be resolved
konradoboza
approved these changes
Sep 16, 2026
konradoboza
force-pushed
the
phpunit-11
branch
2 times, most recently
from
September 16, 2026 12:33
919e16d to
4c2802f
Compare
konradoboza
force-pushed
the
phpunit-11
branch
from
September 16, 2026 12:40
4c2802f to
90bfc38
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related PRs:
Important
PHPUnit 11 only.
phpunit/phpunit ^11.5moves torequire, becausesrc/ships PHPUnit code (ContainsPathconstraint,MenuAssert,AbstractTranslationCase,IbexaKernelTestCase). A consumer still on PHPUnit^9cannot resolveibexa/test-core ~6.0.x-devafter this merges — merge it once the consumers have their PHPUnit 11 PRs ready (or last in the wave).Description:
PHPUnit 9 → 11 for
ibexa/test-core(Symfony 8 upgrade prerequisite; the org-wide wave migrates every 6.0 repo).phpunit/phpunit:require-dev ^9→require ^11.5;symfony/phpunit-bridge ^5.4→^7.4.phpunit.xml.diston the 11.5 schema:<listeners>SymfonyTestsListener→<extensions><bootstrap class="Symfony\Bridge\PhpUnit\SymfonyExtension"/>,cacheDirectory=".phpunit.cache"(gitignored).src/contracts/.../ContainsPath::matches($other)→matches(mixed $other): PHPUnit 11 typed the parentConstraint::matches()signature (a real PHPStan error, not test noise).AbstractTranslationCase: the@dataProviderdocblock kept for PHPUnit 9 next to the#[DataProvider]attribute is gone.@dataProvider/@coversannotations → attributes (13 files); one stalephpstan-baseline.neonentry (attribute.notFoundforDataProvider) pruned.Verified: 45 tests green, 0 PHPUnit deprecations; PHPStan no errors; code style clean; rector dry-run clean. Consumer smoke test:
ibexa/connector-qualifio(phpunit-11branch) unit suite green with this branch pinned as a path repository.For QA:
N/A — test tooling only.
Documentation:
N/A