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.
|
Package
|
Constraint
|
|---|---|
| php-http/client-common | ^2.0 |
| php-http/discovery | ^1.16 |
| php-http/httplug | ^2.0 |
| psr/http-client | ^1.0 |
| psr/http-factory-implementation | ^1.0 |
| psr/http-message | ^1.0 || ^2.0 |
| symfony/polyfill-php80 | ^1.17 |
|
Package
|
Constraint
|
|---|---|
| phpspec/phpspec | ^5.1 || ^6.1 || ^7.3 |
How can I help you explore Laravel packages today?