-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify Handler to call previously defined handlers
Both set_exception_handler and set_error_handler return the values to which they were previously set. Be respectful and call these handlers as it may introduce unexpected behavior in the user's code and also provides no way to attach an error handler besides manually wrapping the bugsnag library. PHPUnit's default behavior is to translate PHP errors into exceptions and raise those. Rely on this assumption in our tests of the error handler. Ref: https://phpunit.de/manual/current/en/writing-tests-for-phpunit.html
- Loading branch information
Matthew Terwilliger
committed
Aug 2, 2017
1 parent
8f00f8b
commit 92d05e3
Showing
2 changed files
with
117 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters