92 usages of expectException() with ignored $message parameter #11059
Labels
Fixed in 2.2.x
The issue has been fixed in 2.2 release line
Fixed in 2.3.x
The issue has been fixed in 2.3 release line
Issue: Clear Description
Gate 2 Passed. Manual verification of the issue description passed
Issue: Confirmed
Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed
Issue: Format is valid
Gate 1 Passed. Automatic verification of issue format passed
It seems like during the transition to PHPUnit 6,
setExpectedException($class, $message)
has been bulk replaced byexpectExcpeption($class, $message)
But the new
expectException()
method only takes one parameter, namely the exception class. To check the message as well, a second method is needed:expectExceptionMessage()
Preconditions
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: