Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Laravel 5 module disable exception handling #2763
I got the idea from this screencast by Adam Wathan: http://adamwathan.me/2016/01/21/disabling-exception-handling.
Add two methods
I also think we can disable the exception handling by default, in most cases you will probably want to see the actual exception in your tests.
Implemented in #2803.
Added two methods to the Laravel 5 module:
This functionality can also be configured through the module config with the
The implementation was not as straightforward as expected, because not all exceptions should be intercepted. For example
The current implementation only disables exception handling for exceptions that could not be handled by the Laravel application itself.
Exception handling is now disabled by default.
Yeah I know, but we didn't want to wait with this feature for 2.2 because it is really nice for normal functional tests.
We could have released with this feature disabled by default, but at the end I decided that I wanted it enabled by default because it addresses a lot of the frustrations users had with the exception handling of their applications. And my thinking was that it is easy for the people that can not or do not want to use this feature to disable it through the module configuration.
The change was mentioned in the changelog, but I can understand your frustration if it took you some time to figure out what was going wrong.