-
-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
paratest doesn't take the globals in phpunit.xml? #68
Comments
The superglobal variable is $_SERVER, not $SERVER. Does this make a difference? |
Hello. Yes, it's And the xml that I put yesterday isn't visible. I took it from my phpunit.xml. I confirm that it works with phpunit "standalone"
|
i will take a look and try to contribute ;) |
Hi, Here are some news: I think there are 2 bugs. One in phpunit itself, and one in paratest. I ask for a pull request in phpunit (sebastianbergmann/phpunit#1248). Once it's fixed, I will then check for the bug in paratest. So for the moment I'm blocked. Cheers! |
ftr.: sebastianbergmann/phpunit#1248 is merged |
Hello,
For my unit tests, i need to have a specific "HTTP_HOST", so I put this in my phpunit.xml:
I use "$_SERVER['HTTP_HOST']" in my bootstrap.php (declared in the phpunit.xml).
It works with phpunit, but when I run it with paratest, this variable is not set.
Is this a bug or did i make something wrong?
Thank you.
The text was updated successfully, but these errors were encountered: