If this is not fulfilled at the end of the test, a failure will occour.
If the error does happen, then this will cancel it out and send a pass message.
public expectError ( SimpleExpectation $expected, string $message ) | ||
$expected | SimpleExpectation | Expected error match. |
$message | string | Message to display. |