承接 gsaulmon/guzzlerecorder 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

gsaulmon/guzzlerecorder

最新稳定版本:2.3

Composer 安装命令:

composer require gsaulmon/guzzlerecorder

包简介

Records and plays back guzzle responses

README 文档

README

This is an event listener plugin for Guzzle 4/5 aimed at setting up tests for complex responses a bit quicker.

Usage

Attach an instance of the recorder to any Guzzle Client

$client = new GuzzleHttp\Client();

$watcher = new Gsaulmon\GuzzleRecorder\GuzzleRecorder(__DIR__ . '/my_test_responses');
$client->getEmitter()->attach($watcher);

Then run your tests. The recorder will grab and store all Guzzle responses in the "my_test_responses" folder. All subsequent runs of the tests will have the Guzzle requests intercepted and will be injected with the stored response.

The responses store will be the full actual response. Make sure to edit out any information you may not want to share.

统计信息

  • 总下载量: 21.82k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 3
  • 点击次数: 1
  • 依赖项目数: 5
  • 推荐数: 0

GitHub 信息

  • Stars: 3
  • Watchers: 2
  • Forks: 1
  • 开发语言: PHP

其他信息

  • 授权协议: mit
  • 更新时间: 2014-06-09