2017 © Pedro Peláez
 

library vcr-plugin

Record your test suite's HTTP interactions and replay them during future test runs.

image

php-http/vcr-plugin

Record your test suite's HTTP interactions and replay them during future test runs.

  • Thursday, July 19, 2018
  • by mark.sagikazar
  • Repository
  • 6 Watchers
  • 1 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 600 % Grown

The README.md

VCR Plugin

Latest Version Software License Build Status Code Coverage Quality Score Total Downloads, (*1)

Record your test suite's HTTP interactions and replay them during future test runs., (*2)

Install

Via Composer, (*3)

``` bash $ composer require --dev php-http/vcr-plugin, (*4)


## Usage ```php <?php use Http\Client\Plugin\Vcr\NamingStrategy\PathNamingStrategy; use Http\Client\Plugin\Vcr\Recorder\FilesystemRecorder; use Http\Client\Plugin\Vcr\RecordPlugin; use Http\Client\Plugin\Vcr\ReplayPlugin; $namingStrategy = new PathNamingStrategy(); $recorder = new FilesystemRecorder('some/dir/in/vcs'); // You can use InMemoryRecorder as well // To record responses: $record = new RecordPlugin($namingStrategy, $recorder); // To replay responses: $replay = new ReplayPlugin($namingStrategy, $recorder);

Testing

bash $ composer test $ composer test-static, (*5)

Contributing

Please see our contributing guide., (*6)

Security

If you discover any security related issues, please contact us at security@php-http.org., (*7)

License

The MIT License (MIT). Please see License File for more information., (*8)

The Versions

19/07 2018

dev-master

9999999-dev http://httplug.io

Record your test suite's HTTP interactions and replay them during future test runs.

  Sources   Download

MIT

The Requires

 

The Development Requires

plugin http psr7 vcr