Registry / testing / internations-http-mock

internations-http-mock

JSON →
library0.14.0phppackagistunverified

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

composer require internations/http-mock
INSTALL
IMPORT
SIG · INTERNATIONS-HTTP-
I
internations-http-mock
testingphpv0.14.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HttpMock
use InterNations\Component\HttpMock\HttpMock;

Start and stop HTTP mocking in tests.

use InterNations\Component\HttpMock\HttpMock; HttpMock::start(); // Make HTTP requests that will be mocked HttpMock::stop();
Debug
Known issues
gotchaOnly works with PHP's built-in server; not for production.
fix
Use only in test environment.
affects: *
Upgrade
Version history
0.14.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
10 hits · last 30 days
node
10
Resources
internations-http-mock — pip install internations-http-mock · libregistry