-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
remove defaults from PHPUnit configuration #11344
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
Conversation
@@ -3,13 +3,7 @@ | |||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |||
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/4.1/phpunit.xsd" | |||
backupGlobals="false" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what is the default for backupGlobals
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
true
according to http://phpunit.de/manual/4.1/en/appendixes.configuration.html
should this be applied to symfony-standard also? |
Sure, will do, @jrobeson. Is the strange formatting meant to be preserved there? |
👍 |
…oper formatting) (craue) This PR was merged into the 2.3 branch. Discussion ---------- update PHPUnit configuration (add XSD, remove defaults, proper formatting) | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | -- | License | MIT | Doc PR | -- See symfony/symfony#11344. Commits ------- 324692e updated PHPUnit configuration (added XSD, removed defaults, proper formatting)
Thank you @craue. |
This PR was merged into the 2.3 branch. Discussion ---------- remove defaults from PHPUnit configuration | Q | A | ------------- | --- | Bug fix? | no | New feature? | no | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | -- | License | MIT | Doc PR | -- Follow-up to #11329. Commits ------- afc4930 removed defaults from PHPUnit configuration
Can anyone comment on why the Symfony project sets |
git blame? |
@bkosborne I guess this is because our testsuite does not need to backup globals. We avoid global state almost everywhere in Symfony (I would find it very good if |
Follow-up to #11329.