定制 gsaulmon/guzzlerecorder 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱: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
  • 点击次数: 3
  • 依赖项目数: 5
  • 推荐数: 0

GitHub 信息

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

其他信息

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

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固