[Suggestion] HTTP related features (similar to nock
in JS)
#1105
MatanYadaev
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
TL;DR
A new HTTP server mocking plugin, similar to
nock
in JavaScript, with the following features:Http
facadeMotivation
PaymentService
that uses Stripe SDK, for instance)Examples
Disable/enable outgoing HTTP requests
Or for stricter projects:
Mock HTTP requests
// @TODO
Record HTTP requests
// @TODO
How it can be done
Disable/enable HTTP requests
I already created a POC locally with Patchwork, a monkey patching package for PHP:
@nunomaduro Would you accept adding such a plugin to the PestPHP organization?
Beta Was this translation helpful? Give feedback.
All reactions