https://github.com/php-vcr/php-vcr-examples
[DEPRECATED] Examples for using PHP-VCR, check the main repo
https://github.com/php-vcr/php-vcr-examples
Last synced: 9 months ago
JSON representation
[DEPRECATED] Examples for using PHP-VCR, check the main repo
- Host: GitHub
- URL: https://github.com/php-vcr/php-vcr-examples
- Owner: php-vcr
- Created: 2013-07-25T14:01:12.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-01-03T11:08:23.000Z (about 10 years ago)
- Last Synced: 2024-03-25T21:16:40.289Z (almost 2 years ago)
- Language: PHP
- Homepage: https://github.com/php-vcr/php-vcr
- Size: 37.1 KB
- Stars: 7
- Watchers: 5
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
[DEPRECATED] PHP-VCR Examples
================
**You can now see usage examples in the [integration tests](https://github.com/php-vcr/php-vcr/tree/master/tests/integration).**
[](https://travis-ci.org/php-vcr/php-vcr-examples)
## Installation
Assuming you have got [composer](http://getcomposer.org) 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
```