-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[BrowserKit] BC-break since Client has been renamed to Browser #31039
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Labels
Comments
Deprecating the test.client service in favor of test.browser might work also |
Well, deprecating the service will not solve the BC break, where the different Client BC classes are not child of each other anymore. |
yeah, I saw it after commenting here. |
fabpot
added a commit
that referenced
this issue
Apr 15, 2019
… to Browser (Devristo) This PR was squashed before being merged into the 4.3-dev branch (closes #31040). Discussion ---------- [BrowserKit] Fixed BC-break introduced by rename of Client to Browser | Q | A | ------------- | --- | Branch? | master | Bug fix? | yes | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #31039 | License | MIT | Doc PR | Since #30541 the inheritance hierarchy of `\Symfony\Component\BrowserKit\Client` has changed. Notably the test.client no longer is an instance of `\Symfony\Component\BrowserKit\Client`. This PR uses `class_alias` to fix the class hierarchy similarly as has been done in Twig. In this case I copied the approach of `Twig_TokenParser_AutoEscape` and `\Twig\TokenParser\AutoEscapeTokenParser` Commits ------- 6a94dea [BrowserKit] Fixed BC-break introduced by rename of Client to Browser
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Symfony version(s) affected: 4.3.x-dev
Description
Since #30541 the inheritance hierarchy of
\Symfony\Component\BrowserKit\Client
has changed. Notably thetest.client
no longer is an instance of\Symfony\Component\BrowserKit\Client
.This breaks breaks at least https://github.com/FriendsOfBehat/SymfonyExtension and https://github.com/minkphp/MinkBrowserKitDriver and most probably other bundles using
test.client
.How to reproduce
On Symfony 4.2 the following test case succeeds, on the master (4.3) branch this fails:
Possible Solution
Use a
class_alias
solution as described in #30541.The text was updated successfully, but these errors were encountered: