pagely/http-mock
Composer 安装命令:
composer require pagely/http-mock
包简介
Mock HTTP requests on the server side in your PHP unit tests, PSR/7 Fork of internations version
README 文档
README
Mock HTTP requests on the server side in your PHP unit tests.
HTTP Mock for PHP mocks the server side of an HTTP request to allow integration testing with the HTTP side. It uses PHP’s builtin web server to start a second process that handles the mocking. The server allows registering request matcher and responses from the client side.
BIG FAT WARNING: software like this is inherently insecure. Only use in trusted, controlled environments. This is a fork of https://github.com/internations/http-mock
Its been updated to use PSR/7 Http methods, and Slim on the server side. The API has been kept the same where possible, but any direct use of Request or Response objects will be different.
Usage
composer require --dev pagely/http-mock
Read the docs
统计信息
- 总下载量: 139.37k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-05-31