-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
PHPUnit Test header already send by "phpunit-5.7/src/Util/Printer.php" #25615
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
Comments
Can this be a duplicate of #24524 ? |
It looks similar. I've testet die options in the ticket with APP_ENV=test but it's already in my PHPUnit XML file. There should be a fix merged to 3.4 it's a bit strange. Perhaps i've made something wrong but i've tried not a lot to find the problem. |
FYI. PHPUnit doesn't (by default) overwrite env variables that are already set. You can use the force="true" option to force this (requires PHPUnit v6.3 - sebastianbergmann/phpunit#2723) |
I've tested my case with PHPUnit 6.3 but same error. The Printer print the buffer on the line 110 and then you have an output before the session is started. |
I had got the same error, solved by enabling : session.storage.mock_file
|
@FlorianKromer ok yes that works. Perhaps some should add a note to the documentation. |
@rehoehle that would be nice. Maybe you could submit a PR on the symfony-docs repository, to add a quick note where you believe it would be the best? |
The issue can be closed, right? |
Yes thx i can change the documentation. |
Great ! Thanks |
can I also set this option on dev env? Without any consequence? |
Uh oh!
There was an error while loading. Please reload this page.
I have a problem after the upgrade to symfony 3.4. I have a login in my unit test. I've implemented the login like the documentation describes here:
https://symfony.com/doc/current/testing/http_authentication.html
I use that code for years now and before 3.4 is was working well.
if i run the phpunit command over the bridge. I get the following error:
without the lines with the login it's working.
The text was updated successfully, but these errors were encountered: