internations/http-mock
Mock HTTP requests on the server side in your PHP unit tests
Maintainers
0.14.0
2021-05-11 10:39 UTC
Requires
- php: ~7.1
- guzzle/guzzle: >=3.8
- jeremeamia/superclosure: ~2
- lstrojny/hmmmath: >=0.5.0
- silex/silex: ~2.0
- symfony/process: ~3|~4|~5
Requires (Dev)
Suggests
None
Provides
None
Conflicts
None
Replaces
None
MIT 49f5b49d390adc13dc74168d336ceedcb7e0da09
- Lars Strojny <lars.strojny.woop@internations.org>
- Max Beutel <max.beutel.woop@internations.org>
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.
Usage
Read the docs
