我正在Laravel5.0中编写单元测试,在我的请求类中我使用不同的包来显示验证错误消息。我在我的文件中使用这个:/*ExampleRequest.php*/namespaceApp\Http\Requests;useApp\Http\Requests\Request;useIlluminate\Support\Facades\Auth;classExampleRequestextendsRequest{protected$errorBag='otherbag';publicfunctionrules(){return['my_field'=>'required'];}}在我的测试文件