Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Context
Integration tests are broken.
This seems to be due to a change in Travis.yml.
Indeed, when Travis performs 2 HTTP requests, for some reason, the "Origin" IP of the request is changing between the request.
This is really a Travis issue and not a PHP-VCR issue;
To make sure of this, I've changed .travis.yml and ran twice the "curl http://httpbin.org/get". Here is the output I got:
See? Twice the same request and 2 different "origin".
This is wreaking havok in the unit tests.
What has been done
First, I removed the "origin" from the JSON.
Then I realized that the integration tests were not actually testing whether PHP-VCR is working really or not. I mean that if PHP-VCR was actually doing nothing (and simply acting like a pass-through), the tests would still succeed.
So I rewrote the "GET" test and made it point to "http://api.chew.pro/trbmb". This is an API that generates random data.
This way, I can test that PHP-VCR is actually really replaying the request (because if it acts as a pass-through, I would get different data for each request.