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

Enabling the Symfony error handler when APP_DEBUG is set to 1 #148

Open
adrian-gheorghe opened this issue Jun 8, 2021 · 0 comments
Open

Comments

@adrian-gheorghe
Copy link

Hello,

On our project we've recently run into an issue that was only reproducible on environments where the APP_DEBUG env var is set to 1 (making Symfony throw exceptions for notices). Our behat tests were still passing, because although APP_DEBUG is enabled in our .env.test file, the bin/behat file does not enable the Symfony debug error handler (Debug::enable()) in the same way public/index.php or bin/console do.

Is there a way to make Debug::enable() run as well by configuration? (we've done that using a BeforeSuite hook for now)
If not, is this something that is desired? Since tests should be as strict as possible, maybe having that as an option would be beneficial.

Thank you

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

No branches or pull requests

1 participant