[Corona] Add a print method for handling fatal error pages
Review Request #254 — Created Dec. 17, 2013 and submitted — Latest diff uploaded
Information | |
---|---|
pprkut | |
Lunr | |
pprkut:jsonview | |
|
|
Reviewers | |
lunr | |
Add a print method that can be used together with register_shutdown_function() to still display a valid screen in case of errors, instead of a blank page.
Unit tests
src/Lunr/Corona/JsonView.php |
---|
src/Lunr/Corona/View.php |
---|
src/Lunr/Corona/Tests/JsonViewPrintFatalErrorTest.php |
---|
tests/phpunit.xml |
---|
tests/statics/Corona/json_error.json |
---|