Skip to content

[PhpUnitBridge] Internal classes are not legacy #38169

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

Merged
merged 1 commit into from
Sep 13, 2020

Conversation

derrabus
Copy link
Member

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets #37564
License MIT
Doc PR N/A

This change works around the issue that we can observe in the failed Travis build of #38103.

We must not call PHPUnit's internal Test::getGroups() method with a built-in class, otherwise we will run into a TypeError. This won't be fixed on PHPUnit's side, so we need to prevent that call. Our DeprecationErrorHander might run into this case if a deprecation is triggered while autoloading a class.

And forgive me, I've had a really hard time trying to craft a test case for that. 🙈

@derrabus
Copy link
Member Author

The fabbot failure is unrelated to my changes.

@fabpot fabpot changed the base branch from master to 4.4 September 13, 2020 04:54
@fabpot
Copy link
Member

fabpot commented Sep 13, 2020

Thank you @derrabus.

@fabpot fabpot merged commit efb255c into symfony:4.4 Sep 13, 2020
@derrabus derrabus deleted the bugfix/internal-classes-are-not-legacy branch September 13, 2020 05:04
This was referenced Sep 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants