Skip to content

Conversation

@emteknetnz
Copy link
Member

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add an example of how to use enableErrorHandler() to the unit and integration testing page (or elsewhere if you find somewhere more appropriate).

@emteknetnz
Copy link
Member Author

Done - during this I also noticed that I didn't have any unit tests for SapphireTest::enableErrorHandler, so I've added those

Also I made some changes to the code as well to simply fallback to the standard php error handler if the errno wasn't one of the 6 that we're catching. This means that deprecation notices will still display properly instead of being thrown as Exceptions.

Copy link
Member

@GuySartorelli GuySartorelli left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM will merge when all other PRs are approved

@GuySartorelli GuySartorelli merged commit e5f48ed into silverstripe:6 Sep 18, 2024
@GuySartorelli GuySartorelli deleted the pulls/6/phpunit11 branch September 18, 2024 03:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants