szemul / error-handler
Simple extensible error handler
Installs: 2 494
Dependents: 9
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 1
Open Issues: 1
Requires
- php: ^8.0
- psr/log: ^1 | ^2 | ^3
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.0.0
- jetbrains/phpstorm-attributes: ^1.0
- mockery/mockery: ^1.0
- phpstan/phpstan: ^1.6.8
- phpunit/phpunit: ^9.5.5
- wmde/psr-log-test-doubles: ^3
This package is auto-updated.
Last update: 2024-11-17 00:39:42 UTC
README
Simple extensible error handler
Functional Testing of an application
For functional testing it is advised to Mock the ErrorHandlerRegistry in the sut to always stop on unhandled errors/exceptions and display them.
This helps identify errors.
Just use the \Szemul\ErrorHandler\Test\ErrorHandlerRegistryMock
instead of the real one!