gsaulmon/guzzlerecorder 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

gsaulmon/guzzlerecorder

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.

统计信息

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

GitHub 信息

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

其他信息

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