Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

[PhpUnitBridge] Support new expect methods in test case polyfill #38680

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
Oct 23, 2020

Conversation

alcaeus
Copy link
Contributor

@alcaeus alcaeus commented Oct 22, 2020

Q A
Branch? 5.x
Bug fix? no
New feature? yes
Deprecations? no
License MIT

This PR adds the expectError, expectWarning, expectNotice, and expectDeprecation methods to the test case polyfill.

Note that I saw a expectDeprecation message in ExpectDeprecationTrait, but I couldn't quite figure out what it's supposed to do. Please let me know if the expectDeprecation method needs to be removed from the test polyfill.

@nicolas-grekas
Copy link
Member

nicolas-grekas commented Oct 22, 2020

ExpectDeprecationTrait predates expectDeprecation() and is providing a more useful behavior than the newly added method in phpunit. I don't think we need to polyfill it, because it's just useless as it is...

@alcaeus alcaeus force-pushed the phpunit-bridge-polyfill-expect-methods branch 2 times, most recently from c1cf6b8 to d36157e Compare October 22, 2020 12:23
@alcaeus alcaeus force-pushed the phpunit-bridge-polyfill-expect-methods branch from d36157e to 8a49a26 Compare October 22, 2020 12:28
@alcaeus alcaeus changed the base branch from 5.x to 4.4 October 22, 2020 12:28
@nicolas-grekas
Copy link
Member

We consider such changes as bugfixes (see #37970 for bg)
Please rebase+retarget your PRs for 4.4

@nicolas-grekas nicolas-grekas modified the milestones: 5.2, 4.4 Oct 22, 2020
@fabpot
Copy link
Member

fabpot commented Oct 23, 2020

Thank you @alcaeus.

@fabpot fabpot merged commit 9bfd3ee into symfony:4.4 Oct 23, 2020
@alcaeus alcaeus deleted the phpunit-bridge-polyfill-expect-methods branch October 23, 2020 05:34
This was referenced Oct 28, 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.

4 participants
Morty Proxy This is a proxified and sanitized view of the page, visit original site.