Popularity
4.6
Stable
Activity
3.4
Growing
387
26
60

Description

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.

Code Quality Rank: L5
Monthly Downloads: 5,004
Programming language: PHP
License: MIT License
Tags: Testing    
Latest version: v0.13.0

HTTP Mock alternatives and similar libraries

Based on the "Testing" category.
Alternatively, view HTTP Mock alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of HTTP Mock or a related project?

Add another 'Testing' Library

README

HTTP Mock for PHP

Gitter Build Status Dependency Status Average time to resolve an issue Percentage of issues still open

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)