php-vcr / php-vcr

Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.
http://php-vcr.github.io
MIT License
1.17k stars 202 forks source link

PHP-VCR ignore the soap encoding passed to the soapclient #180

Open jacques opened 7 years ago

jacques commented 7 years ago

Looks like PHP-VCR is hardcoding the encoding to utf-8 causing issues with testing nusoap that requires the US-ASCII:

SoapFault: error in msg parsing:
Charset from HTTP Content-Type 'US-ASCII' does not match encoding from XML declaration 'UTF-8'
jacques commented 7 years ago

Pull request submitted. I will have a working example for this fix available this weekend.

edwinheij commented 7 years ago

Any progress?

renatomefi commented 7 years ago

The PR is reviewed, @jacques could you provide some tests on it? https://github.com/php-vcr/php-vcr/pull/181

Thank you very much

jacques commented 7 years ago

Forgot to mention that the example using the my fork of php-vcr that fixes this is over @ https://github.com/jacques/php-freepaid