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] Replace calls to setExpectedException by Pollyfill #32872

Merged

Conversation

jderusse
Copy link
Member

@jderusse jderusse commented Aug 1, 2019

Q A
Branch? 3.4
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Tests pass? need #32869 to be merged
Fixed tickets #32844
License MIT
Doc PR NA

PhpUnit method setExceptionException has been deprecated seens 5.7. This PR replace theme by exceptException provide by the pollyfill.

@jderusse jderusse force-pushed the compat-phpunit9-setExpectedException branch from 3074265 to 41c02d7 Compare August 1, 2019 20:43
@nicolas-grekas
Copy link
Member

Thank you @jderusse.

@nicolas-grekas nicolas-grekas merged commit 41c02d7 into symfony:3.4 Aug 1, 2019
nicolas-grekas added a commit that referenced this pull request Aug 1, 2019
…usse)

This PR was merged into the 3.4 branch.

Discussion
----------

Replace calls to setExpectedException by Pollyfill

| Q             | A
| ------------- | ---
| Branch?       | 3.4
| Bug fix?      | yes
| New feature?  | no
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | need #32869 to be merged
| Fixed tickets | #32844
| License       | MIT
| Doc PR        | NA

PhpUnit method `setExceptionException` has been deprecated seens 5.7. This PR replace theme by `exceptException` provide by the pollyfill.

Commits
-------

41c02d7 Replace calls to setExpectedException by Pollyfill
'InvalidArgumentException',
'You cannot refresh a user from the EntityUserProvider that does not contain an identifier. The user object has to be serialized with its own identifier mapped by Doctrine'
);
$this->expectException('InvalidArgumentException');
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should use ::class constant wherever we update this. best opportunity yet.

@jderusse jderusse changed the title Replace calls to setExpectedException by Pollyfill [PhpUnitBridge] Replace calls to setExpectedException by Pollyfill Aug 2, 2019
@jderusse jderusse deleted the compat-phpunit9-setExpectedException branch August 2, 2019 12:14
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

7 participants