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

Migrate away from PHPUnit's expectedException annotations #86

Merged
merged 1 commit into from Mar 16, 2020
Merged

Migrate away from PHPUnit's expectedException annotations #86

merged 1 commit into from Mar 16, 2020

Conversation

mszabo-wikia
Copy link
Contributor

PHPUnit provides expectedException and related annotations to
declaratively specify information about the exception a test
is expected to throw. This API has been deprecated in PHPUnit 8
and is due to be removed in PHPUnit 9.[1]

This patch migrates the tests to use the recommended expectException()
and related methods instead of the annotations to ensure that a future
PHPUnit upgrade will not break them.


[1] sebastianbergmann/phpunit#3332

@sergeyklay
Copy link
Collaborator

@mszabo-wikia This branch has conflicts (due to #85) that must be resolved. Could you please rebase

PHPUnit provides expectedException and related annotations to
declaratively specify information about the exception a test
is expected to throw. This API has been deprecated in PHPUnit 8
and is due to be removed in PHPUnit 9.[1]

This patch migrates the tests to use the recommended expectException()
and related methods instead of the annotations to ensure that a future
PHPUnit upgrade will not break them.

---
[1] sebastianbergmann/phpunit#3332
@mszabo-wikia
Copy link
Contributor Author

Thanks! Rebased :)

@sergeyklay sergeyklay merged commit 7f94986 into jonahgeorge:master Mar 16, 2020
@sergeyklay
Copy link
Collaborator

Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants