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

[PhpUnitBridge] add PolyfillTestCaseTrait::expectExceptionMessageMatches to provide FC with recent phpunit versions #36408

Conversation

soyuka
Copy link
Contributor

@soyuka soyuka commented Apr 9, 2020

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

expectExceptionMessageRegExp is deprecated coming phpunit 8.5.3 see sebastianbergmann/phpunit#4133

Not sure if I need to add something else lmk.

@soyuka soyuka changed the base branch from master to 4.4 April 9, 2020 17:54
@soyuka soyuka force-pushed the fix/phpunit-bridge-expectexceptionmessagematches branch from ab980a9 to c7a2aad Compare April 9, 2020 17:55
@nicolas-grekas nicolas-grekas added this to the 4.4 milestone Apr 10, 2020
@nicolas-grekas nicolas-grekas changed the title Phpunit 8 deprecates expectExceptionMessageRegExp [PhpUnitBridge] add PolyfillTestCaseTrait::expectExceptionMessageMatches to provide FC with recent phpunit versions Apr 10, 2020
@nicolas-grekas
Copy link
Member

I suppose the codebase should be updated accordingly?

@soyuka
Copy link
Contributor Author

soyuka commented Apr 15, 2020

you mean change expectExceptionMessageRegExp to expectExceptionMessageMatches?

@dunglas
Copy link
Member

dunglas commented Apr 15, 2020

@soyuka yes, in the whole Symfony code base.

composer.json Outdated Show resolved Hide resolved
…hes to provide FC with recent phpunit versions
@nicolas-grekas nicolas-grekas force-pushed the fix/phpunit-bridge-expectexceptionmessagematches branch from 286518a to cfd5a29 Compare April 15, 2020 15:56
@nicolas-grekas
Copy link
Member

Thank you @soyuka.

@nicolas-grekas nicolas-grekas merged commit 14a2046 into symfony:4.4 Apr 15, 2020
@nicolas-grekas
Copy link
Member

@soyuka would you mind contributing a rule to php-cs-fixer so that this is enforced automatically in the future please?

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

4 participants