4 years ago

How do you use PHPUnit to test Request objects?

Posted 4 years ago by tag

I want to be able to test that given some input array, I get the expected MessageBag results out of a Request object, but there doesn't appear to be an easy way to do this.

Is the only way do something like this a full integration test and actually inspecting the $errors object of the view that gets returned?

Please sign in or create an account to participate in this conversation.