Just a quick helper method you can add to your base TestCase
to make it easy to toggle exception handling on the fly. Improved a little bit from the sloppier version I used in the screencast :)
Update 2016-11-09:
At some point since I originally shared this snippet and the accompanying screencast, Laravel started binding App\Exceptions\Handler
under the Illuminate\Contracts\Debug\ExceptionHandler
interface instead of the concrete class, so I've updated the files below to account for that.
I made some extensions to this very useful code here:
https://gist.github.com/stefnats/5c68a77aa17c50903af29dfcafde1b0a
It prevents throwing exceptions on common errors like
ValidationException
orNotFoundException