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 does not contain env options defined in phpunit.xml #277
Comments
This works (for me at least) with PHPUnit 3.6.2 so I'll just to ahead and close this. Dumping $_ENV shows me all the env options defined for me CLI envinroment and also that I've added to the xml config. If that doesn't still work out for you feel free to reopen and maybe add a small reproduce if you can. |
Actually I am experiencing this as well with PHPUnit 3.7.20 running on php 5.3.10-1ubuntu3.6. I do not experience that with php running on OS X. I guess this might be platform-specific. In phpunit.xml:
In bootstrap.php:
|
The problem occurs when auto-globals-jit is enabled because the implementation of this feature make use of variable variables. I'll provide a fix for this shortly. |
I'm experiencing this issue in PHPUnit 4.5.0 |
I'm having this issue with PHPunit 5.2.11 installed via composer. Funny enough if i use a PHPunit 4.5 runtime (left over in /usr/local/bin) it will run saying "5.2.11" but will load vars. |
@rdohms Please open a new ticket that contains a minimal, self-contained, reproducing test case. Thanks! |
ok, let me give it a try |
I tried to define
APPLICATION_ENV
option in the phpunit.xml file:And found out that this option wouldn't avaliable in
bootsrap.php
:but but perfectly exist in the test.
can you comment on this behavior because for me it seems right to have those options in bootstrap.php
The text was updated successfully, but these errors were encountered: