-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
ApplicationTester should setAutoExit to false #6464
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
Comments
I have updated the phpdoc to warn about this. |
Seems sensible, but is there any particular reason not to have the ApplicationTester do this itself? |
Yes, the Application is the object we want to test, the tester should not change it in any way. |
Makes sense, cheers. It'd be nice to have something that verifies this has been done at runtime, as well as the hint in the docs. Perhaps the tester could inspect the object and raise an error if it's not set to AutoExit false? |
This PR was merged into the master branch. Commits ------- e3086cc [Console] added some missing information in the phpdoc (closes #6464) Discussion ---------- [Console] added some missing information in the phpdoc (closes #6464) | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #6464 | License | MIT | Doc PR | n/a
This one caught me out just now, if there's a strong reason why this shouldn't disable the exit behaviour, then could a note be added to the tip in this section http://symfony.com/doc/current/components/console/introduction.html#testing-commands which references ApplicationTester?
The text was updated successfully, but these errors were encountered: