Release 3.2.1 breaks vendors behavior #71
Comments
If this scenario needs to be supported, then we'd need:
Overall, changing Specifically, in the two cases listed above:
|
As an added suggestion, consider using EDIT: this includes tests that rely on changing |
We can update Thanks for the ping! |
This not even fails vendor products it fails all our integration controller tests now. PHPUnit allows to add server variable via configuration (like HTTP_HOST i.e.). These configuration settings are now thrown away when ever a new controller test is started. The next problem is, that if the test fails and throws an exception the global variables are not restored and phpunit now fails hard. Is this really expected behaviour? |
No. I'll try to prepare another fix today, I have an idea and it could work for everyone! :) |
@reinfi @loic-couharde @Ocramius I've prepared PR: |
looks good to me |
We have some controller tests failing now with https://github.com/zendframework/zend-session/blob/master/src/AbstractContainer.php#L260
Reverting to 3.2.0 fixes the tests. |
Hi,
The #66 hotfix breaks many vendors since Global arrays are cleared on setUp().
For example I use spatie/phpunit-snapshot-assertions to make snapshots which use $_SERVER here or Hoa Protocol here.
These are only 2 examples but it may have a huge impact on other large projects with many vendors.
Is it possible to consider fine fixing the problem encountered in #61 instead of clearing all global arrays ?
Thanks.
The text was updated successfully, but these errors were encountered: