The value passed to $expected is either an exception or the expected exception's message.
public static match ( Closure $actual, mixed $expected = null, integer $code ) : boolean | ||
$actual | Closure | The closure to run. |
$expected | mixed | A string indicating what the error text is expected to be or a exception instance. |
$code | integer | The expected `Exception` code if `$expected` is a string. |
Результат | boolean |