feat: extract ApiTestCase in its own api-platform/test package - #7887
Merged
soyuka merged 1 commit intoSep 11, 2026
Merged
Conversation
Maxcastel
force-pushed
the
extract-ApiTestCase-api-platform/test-package
branch
from
March 30, 2026 08:22
d83c7ed to
918239d
Compare
Maxcastel
marked this pull request as ready for review
March 30, 2026 08:23
Maxcastel
force-pushed
the
extract-ApiTestCase-api-platform/test-package
branch
3 times, most recently
from
May 15, 2026 21:01
4a85e68 to
721fd65
Compare
Contributor
Author
|
Rebased onto #7971, waiting for it to be merged into |
Maxcastel
force-pushed
the
extract-ApiTestCase-api-platform/test-package
branch
2 times, most recently
from
September 3, 2026 14:11
f7c15b4 to
91a2c80
Compare
Maxcastel
force-pushed
the
extract-ApiTestCase-api-platform/test-package
branch
from
September 3, 2026 14:27
91a2c80 to
6166b25
Compare
soyuka
added a commit
that referenced
this pull request
Sep 11, 2026
* fix(test): use the extracted ApiTestCase namespace #7887 moved the test helpers to ApiPlatform\Test and deleted src/Symfony/Bundle/Test. 11 test files still referenced the old FQCN, either merged on main after #7887 or brought up from 4.3/4.4. The resulting fatal took down the whole PHPUnit matrix and PHPStan. Also stubs getFunction('csp_nonce') on the Twig double in EntrypointActionTest: #8310 updated GraphiQlActionTest but missed this one, which builds the same GraphiQlAction. * feat(symfony): deprecate the moved test helper classes #7887 moved eight public classes out of api-platform/symfony without a deprecation path, so user test suites extending ApiTestCase break on a plain "class not found". Restore them at the old FQCNs as deprecated shims delegating to ApiPlatform\Test. Client, Response, ArraySubset and MatchesJsonSchema are final and cannot be subclassed, so they are class_alias'd; the traits are wrapped; ApiTestCase subclasses. Adds api-platform/test and symfony/deprecation-contracts to the component requirements. * fix(symfony): satisfy cs-fixer and phpstan on the shims CS Fixer's fully_qualified_strict_types applies to docblocks, so the {@see} tags must use the imported alias. PHPStan reports trait.unused for the three trait shims, which exist only for BC and are legitimately used nowhere in the monorepo. * fix: drop phpstan ignores left dead by #8517 #8517 removed the Request::getContentType() fallbacks and the method_exists() guards around getContentTypeFormat(), but kept the ignore patterns targeting them, so phpstan reports them as unmatched. Neither has a call site left.
This was referenced Sep 11, 2026
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.
Uh oh!
There was an error while loading. Please reload this page.