标签: php json laravel lumen
当我尝试在没有令牌的情况下访问API的终点时,我得到了错误,正如我应该的那样。对于我的测试,我想测试我无法在没有令牌的情况下访问终点。出现的错误是:
Invalid JSON was returned from the route. Perhaps an exception was thrown?
我如何测试以期待此错误?