-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Exceptions in __toString won't show up. Added a trigger error for the user to be able to advise #5
Conversation
…__toString implementation in case of exceptions in cleanDirectory (for example).
…estination directory
Renamed $e to $exception. BUT, I am not able to run tests on my computer for coverage/html.php, here is the output : php ./scripts/runner.php -d tests/units/classes/report/fields/runner/coverage/
Call Stack: |
I have added exception management. |
If the directory is supposed to exists, then I think you should remove the is_dir()/mkdir() part (https://github.com/mageekguy/atoum/blob/master/classes/report/fields/runner/coverage/html.php#L302) If not, then you should add the test to avoid the exception that will be raised when trying to clean the directory. Your decision |
__toString cannot throw an exception. Added a try / catch around the __toString implementation in case of exceptions in cleanDirectory (for example).