Skip to content

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

Merged
merged 1 commit into from
Jul 8, 2014

Conversation

craue
Copy link
Contributor

@craue craue commented Jul 7, 2014

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.

@@ -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"
Copy link
Member

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 ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ghost
Copy link

ghost commented Jul 7, 2014

should this be applied to symfony-standard also?

@craue
Copy link
Contributor Author

craue commented Jul 7, 2014

Sure, will do, @jrobeson. Is the strange formatting meant to be preserved there?

@fabpot
Copy link
Member

fabpot commented Jul 7, 2014

👍

fabpot added a commit to symfony/symfony-standard that referenced this pull request Jul 7, 2014
…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)
@fabpot
Copy link
Member

fabpot commented Jul 8, 2014

Thank you @craue.

@fabpot fabpot merged commit afc4930 into symfony:2.3 Jul 8, 2014
fabpot added a commit that referenced this pull request Jul 8, 2014
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
@bkosborne
Copy link

Can anyone comment on why the Symfony project sets backupGlobals to false?

@nicolas-grekas
Copy link
Member

git blame?

@stof
Copy link
Member

stof commented Aug 1, 2015

@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 almost could be unnecessary in this sentence), so avoiding to backup globals unnecessarily improves the speed of the testsuite.

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.

5 participants