php-http/vcr-plugin
最新稳定版本:1.2.4
Composer 安装命令:
composer require php-http/vcr-plugin
包简介
Record your test suite's HTTP interactions and replay them during future test runs.
README 文档
README
Record your test suite's HTTP interactions and replay them during future test runs.
Install
Via Composer
$ composer require --dev php-http/vcr-plugin
Usage
<?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
$ composer test
$ composer test-static
Contributing
Please see our contributing guide.
Security
If you discover any security related issues, please contact us at security@php-http.org.
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 270.95k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 21
- 点击次数: 1
- 依赖项目数: 12
- 推荐数: 1
其他信息
- 授权协议: MIT
- 更新时间: 2016-03-30