If $params is an array, it is passed as arguments to the callback.
Otherwise, it is assumed no arguments need to be passed.
public static assert_throws ( callable $callback, array $params, string $exception = null, string $msg = null ) : boolean | ||
$callback | callable | Callback that should throw an exception |
$params | array | Callback that should throw an exception |
$exception | string | The exception class that should be thrown |
$msg | string | |
리턴 | boolean |