Skip to content

aaa2000/php-vcr-examples

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP-VCR Examples

Build Status

Installation

Assuming you have got composer installed:

git clone [email protected]: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

About

Examples for using PHP-VCR

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%