You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In PHPUnit 5.4 passing other than a string value for the message will give you the following failure: PHPUnit_Framework_Exception: Argument #1 (No Value) of PHPUnit_Framework_TestCase::expectExceptionMessage() must be a string
setExpectedException has been decripcated, in checking expectExceptionCode, expecteExceptionMessage, and expectExceptedMessageRegex I realized that the tests are not run if the string is empty. It was originally using the empty() method, which meant that '0' would also be skipped. I changed it so that only the empty string is skipped, but technically even that should be checked. The problem is that, if it tries to test and empty string many errors/failures occur. This will take some more looking into.
I believe the message argument should automatically be typecast to string.
The text was updated successfully, but these errors were encountered: