Search by

internations / http-mock

lstrojnyCMalvika

Mock HTTP requests on the server side in your PHP unit tests

Package info

github.com/InterNations/http-mock

pkg:composer/internations/http-mock

Statistics

Installs: 666 399

Dependents: 25

Suggesters: 0

Stars: 392

Open Issues: 17

0.14.0 2021-05-11 10:39 UTC

README

Test

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