Skip to content
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

[PhpUnit] Add polyfill for assertMatchesRegularExpression() #37960

Merged

Conversation

dunglas
Copy link
Member

@dunglas dunglas commented Aug 26, 2020

Q A
Branch? 4.4
Bug fix? yes
New feature? yes
Deprecations? no
Tickets n/a
License MIT
Doc PR n/a

assertRegExp() is now deprecated in favor of assertMatchesRegularExpression.

@fabpot
Copy link
Member

fabpot commented Aug 27, 2020

Thank you @dunglas.

@fabpot fabpot force-pushed the feat/assertMatchesRegularExpression-polyfill branch from 8cfc0d2 to 33eccd2 Compare August 27, 2020 14:03
@fabpot fabpot merged commit 7da56f3 into symfony:4.4 Aug 27, 2020
@dunglas dunglas deleted the feat/assertMatchesRegularExpression-polyfill branch August 27, 2020 14:29
@nicolas-grekas
Copy link
Member

nicolas-grekas commented Aug 27, 2020

This has been merged already in master in #37567

@nicolas-grekas
Copy link
Member

I'd suggest reverting + using master @dunglas

@fabpot
Copy link
Member

fabpot commented Aug 27, 2020

I thought we were merging this kind of features in the lowest branch.

@nicolas-grekas
Copy link
Member

nicolas-grekas commented Aug 27, 2020

Well, we can :)
The first polyfilling bytes in #32922 were merged as a feature.
We can backport #37567 in 4.4 also.

@dunglas
Copy link
Member Author

dunglas commented Aug 27, 2020

This one has been merged in 4.4 so I was confused :) #36408
Ok for me to revert!

fabpot added a commit that referenced this pull request Aug 27, 2020
…olyfillAssertTrait (dunglas)

This PR was merged into the 4.4 branch.

Discussion
----------

[PhpUnitBridge] Move assertMatchesRegularExpression in PolyfillAssertTrait

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | no
| New feature?  | no <!-- please update src/**/CHANGELOG.md files -->
| Deprecations? | no <!-- please update UPGRADE-*.md and src/**/CHANGELOG.md files -->
| Tickets       | n/a

Move the polyfill method introduced in #37960 in the `Assert` trait. Sorry I noticed this trait later.

Commits
-------

0426113 [PhpUnitBridge] Move assertMatchesRegularExpression in PolyfillAssertTrait
fabpot added a commit that referenced this pull request Aug 28, 2020
This PR was merged into the 4.4 branch.

Discussion
----------

[PhpUnitBridge] Polyfill new phpunit 9.1 assertions

| Q             | A
| ------------- | ---
| Branch?       | 4.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? | no
| Tickets       | Fix #37320
| License       | MIT
| Doc PR        | -

Backport of #37567, follows the discussion on #37960.

Commits
-------

d945b88 [PhpUnitBridge] Polyfill new phpunit 9.1 assertions
This was referenced Aug 31, 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.

None yet

6 participants