Improved phpunit configuration
Added unit tests for ErrorException
Fixed ErrorException based on failing unit tests
Added unit tests for DefaultFailureHandler
Fixed DefaultFailureHandler based on failing unit tests