Skip to content

expectExceptionMessageRegExp() has been removed in PHPUnit 9 without a deprecation warning being given in PHPUnit 8 #4133

@stof

Description

@stof
Q A
PHPUnit version 9
PHP version 7.3
Installation Method Composer

Summary

The commit introducing expectExceptionMessageMatches says that expectExceptionMessageRegExp will trigger a warning in 9 and be removed in 10.
But the 9.0 removed the method entirely instead of adding a warning in it. This means that the method got removed without ever reporting a deprecation warning when running tests using it.
And there is no changelog saying that this method is deprecated (the PHPUnit 8 changelog does not talk about deprecating expectExceptionMessageRegExp and the PHPUnit 9 changelog says it is removed).

Metadata

Metadata

Labels

feature/assertionIssues related to assertions and expectationstype/bugSomething is broken

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions