Skip to content
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

Fix stream emulation #193

Closed
wants to merge 2 commits into from
Closed

Conversation

markstory
Copy link

Context

Stream API emulation is incomplete, because headers cannot be accessed out of the wrapper data so client code that works with native streams + curlwrappers fails when emulated by VCR.

What has been done

  • I've added the missing behavior to access the headers key which is populated by the native http and https stream implementations when PHP is compiled with curlwrappers support (the default on osx)
  • I've had to skip all the SOAP related tests. The WSDL file they are based on is throwing IIS errors. See http://wsf.cdyne.com/WeatherWS/Weather.asmx?WSDL

How to test

  • Use the CakePHP or Aura HTTP clients and turn on VCR. Without these changes you get mostly cryptic errors.

Todo

N/A

Notes

N/A

The WSDL files from cdyne.com are no longer available. Because this
service is offline the quickest way to get a passing test run was to
skip some tests.
When using the stream_* methods some clients expect that there is an
internal key of `headers`. By emulating this key VCR can be compatible
with more clients. I encountered this issue when trying to use VCR with
the CakePHP HTTP Client which uses the stream API.
@markstory
Copy link
Author

Closing as #230 incorporates these changes with test fixes.

@markstory markstory closed this Jan 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant