php-vcr / php-vcr-examples
There is no license information available for the latest version (1.1.0) of this package.
1.1.0
2014-02-22 13:00 UTC
Requires
- php: >=5.3
- php-vcr/phpunit-testlistener-vcr: dev-master
This package is not auto-updated.
Last update: 2024-11-09 15:28:53 UTC
README
You can now see usage examples in the integration tests.
Installation
Assuming you have got composer installed:
git clone git@github.com:php-vcr/php-vcr-examples.git
cd php-vcr-examples/
composer install
Guzzle (using curl_rewrite library hook)
To run the guzzle example, do this:
cd guzzle
phpunit
If you like to record all http requests again, delete the fixture file.
rm test/fixtures/github_adri_php-vcr.yml
phpunit
Soap
Soap examples can be run by:
cd soap
phpunit
To record all http requests agian, delete the fixtures:
cd soap
rm test/fixtures/soap_weather_api_temperature
phpunit