-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
bootstrap doesn't have globals set when "--bootstrap" is specified in command line #1216
Milestone
Comments
Nikoms
pushed a commit
to Nikoms/phpunit
that referenced
this issue
May 3, 2014
This was referenced Mar 19, 2016
nicolas-grekas
added a commit
to symfony/symfony
that referenced
this issue
Mar 23, 2016
…ATIONS_HELPER (nicolas-grekas) This PR was merged into the 3.1-dev branch. Discussion ---------- [Bridge\PhpUnit] Add "disabled" mode to SYMFONY_DEPRECATIONS_HELPER | Q | A | ------------- | --- | Branch? | master | Bug fix? | no | New feature? | yes | BC breaks? | no | Deprecations? | no | Tests pass? | yes | Fixed tickets | #18222 | License | MIT | Doc PR | - See https://github.com/symfony/symfony/pull/18232/files?w=1 Because we keep adding features to the bridge, so that one could want some features but not the deprecations helper. In weak mode, this PR also disables colors. Fetching the SYMFONY_DEPRECATIONS_HELPER env var is also done lazily to workaround old phpunit versions affected by sebastianbergmann/phpunit#1216 Commits ------- 64fe539 [Bridge\PhpUnit] Add "disabled" mode to SYMFONY_DEPRECATIONS_HELPER
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello,
I have a phpunit.xml with bootstrap and some global variables set.
When I'm running "phpunit" without argument, my bootstrap.php has globals var set.
But when I run "phpunit --bootstrap test/bootstrap.php" (which is exactly the same file), none of the globals are set.
Here is my phpunit.xml:
And my bootstrap.php:
I have a pull request ready for this, but I wanted to know if it was a normal behavior or an issue?
Thanks!
The text was updated successfully, but these errors were encountered: