php-http/mock-client
Mock HTTP client for HTTPlug/PHP-HTTP. Stores outgoing requests and returns queued responses or throws exceptions instead of making real network calls—ideal for unit tests of HTTP-dependent code. Install via Composer as a dev dependency.
php-http/discovery, things will work out of the box.
When disabled and you do not have a PSR-17 factory installed, you will need to explicitly require one, e.g. nyholm/psr7.Broken, use 1.6.0 instead
php-http/message-factory as the mock client does not use it.psr/http-client-implementationphp-http/httplug: 1.* to be sure to implement a version of the client interface that implements the PSR.reset() should not trigger setDefaultException error conditionreset() also resets conditionalResultsgetLastRequest methodUpdated to php-http/discovery:^1.0
How can I help you explore Laravel packages today?