Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

[WIP] Fix for PHP 5.5 unit tests (and XDebug >= 2.2.0) #4458

Conversation

weierophinney
Copy link
Member

This PR aims to fix issues observed with unit tests on PHP 5.5. One differentiating factor observed is a behavior change in XDebug 2.2.0 -- xdebug_get_headers no longer resets itself between calls. As such, response sender tests need to alter expectations based on the XDebug version detected.

Travis is also still showing errors in the Zend\Filter\Compress\Zip tests, which unfortunately I cannot reproduce locally. I'm considering disabling these tests when in Travis.

- On investigation, discovered XDebug 2.2 altered how xdebug_get_headers()
  works, which breaks unit tests for the abstract response sender. Added in some
  xdebug version sniffing in order to alter the tests accordingly.
- trailing whitespace
- and into the system temp directory. This may fix the issue seen on
  Travis; regardless, it's good policy.
@weierophinney
Copy link
Member Author

8ea14aa may address the Travis issues in 5.5; if it doesn't, I'm not sure what to do other than to disable those tests in 5.5.

- Appears to be an issue with filesystem write privileges, but no way to
  track it down.
@weierophinney
Copy link
Member Author

Ended up having to disable the tests on Travis. I can confirm they pass fine on 5.5.0RC1 and 5.5.0beta4 builds locally, which indicates to me an environment issue.

@weierophinney
Copy link
Member Author

Can I have somebody on @zendframework/community-review-team review, please?

mwillbanks pushed a commit that referenced this pull request May 23, 2013
gianarb pushed a commit to zendframework/zend-filter that referenced this pull request May 15, 2015
gianarb pushed a commit to zendframework/zend-filter that referenced this pull request May 15, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant