Skip to content
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

DOC Update PHPUnit code sample #583

Merged
merged 1 commit into from
Sep 18, 2024

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
3 checks passed
@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