Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/InterNations/http-mock
Mock HTTP requests on the server side in your PHP unit tests
https://github.com/InterNations/http-mock
Last synced: about 2 months ago
JSON representation
Mock HTTP requests on the server side in your PHP unit tests
- Host: GitHub
- URL: https://github.com/InterNations/http-mock
- Owner: InterNations
- License: mit
- Created: 2013-05-23T17:38:04.000Z (about 11 years ago)
- Default Branch: main
- Last Pushed: 2024-01-16T17:03:50.000Z (5 months ago)
- Last Synced: 2024-04-25T22:02:13.592Z (about 2 months ago)
- Language: PHP
- Homepage: http://www.internations.org
- Size: 287 KB
- Stars: 389
- Watchers: 24
- Forks: 59
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Lists
- awesome-php - HTTP Mock - A library for mocking HTTP requests in unit tests. (Table of Contents / Testing)
- awesome-projects - HTTP Mock - A library for mocking HTTP requests in unit tests. (PHP / Testing)
- awesome-php-cn - 官网
- awesome-php-zh_CN - HTTP Mock - 一个在单元测试模拟HTTP请求的库 (测试 Testing)
- awesome-php-cn - HTTP Mock - 在单元测试中模拟HTTP请求的库。 (目录 / 测试 Testing)
- awesome-php - HTTP Mock - 一个在单元测试中模拟HTTP请求的库 (测试( Testing ))
- awesome-php - HTTP Mock - 一个在单元测试中模拟HTTP请求的库 (测试( Testing ))
- awesome-php - HTTP Mock - A library for mocking HTTP requests in unit tests. (Testing)
- awesome-php - HTTP Mock - A library for mocking HTTP requests in unit tests. (Table of Contents / Testing)
- awesome-php - HTTP Mock - 一个在单元测试中模拟HTTP请求的库 (URL)
- awesome-stars - http-mock - Mock HTTP requests on the server side in your PHP unit tests (PHP)
- awesome-php-new - HTTP Mock - A library for mocking HTTP requests in unit tests. (Table of Contents / Testing)
- awesome-php - HTTP Mock - A library for mocking HTTP requests in unit tests. (Testing)
- awesome-php - HTTP Mock - A library for mocking HTTP requests in unit tests. (Table of Contents / Testing)
- awesome-php - HTTP Mock - A library for mocking HTTP requests in unit tests. (Table of Contents / Testing)
- PHP_awesome-directus-duh-REKT-iss- - HTTP Mock - A library for mocking HTTP requests in unit tests. (Table of Contents / Testing)
- awesome-stripe - HTTP Mock - A library for mocking HTTP requests in unit tests. (Table of Contents / Testing)
- awesome-php - HTTP Mock - A library for mocking HTTP requests in unit tests. (Table of Contents / Testing)
- awesome-php-cn - 官网
- awesome-php - HTTP Mock - A library for mocking HTTP requests in unit tests. (Table of Contents / Testing)
- awesome-php - HTTP Mock - A library for mocking HTTP requests in unit tests. (Table of Contents / Testing)
- awesome - InterNations/http-mock - Mock HTTP requests on the server side in your PHP unit tests (PHP)
README
# HTTP Mock for PHP
[![Test](https://github.com/InterNations/http-mock/actions/workflows/test.yaml/badge.svg)](https://github.com/InterNations/http-mock/actions/workflows/test.yaml)
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.
## Usage
Read the [docs](doc/index.md)