--TEST-- json_validate() - Error handling for max depth --SKIPIF-- --FILE-- getMessage() . PHP_EOL; var_dump(json_last_error(), json_last_error_msg()); } ?> --EXPECTF-- json_validate(): Argument #2 ($depth) must be less than %d int(0) string(8) "No error"