psr-mock / http-client-implementation
Lightweight PSR-18 HTTP Client implementation provider tailored to simplify mocked testing.
Installs: 23 267
Dependents: 4
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: ^8.1
- psr/http-client: ^1.0
- psr/http-message: ^1.0
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.14
- infection/infection: ^0.26
- mockery/mockery: ^1.5
- pestphp/pest: ^2.0
- phpstan/phpstan: ^1.10
- phpstan/phpstan-strict-rules: ^1.5
- rector/rector: ^0.15
- vimeo/psalm: ^5.8
- wikimedia/composer-merge-plugin: ^2.0
Provides
README
Lightweight mocking library for PSR-18 HTTP Client implementations, tailor-made to help you create test suites that are easier to write and maintain.
This library is primarily intended for use in libraries like SDKs that consume PSR implementations without requiring hard dependencies on specific libraries. The library mocks a real-world implementation and strictly adheres to PSR specifications, enabling you to create test suites that are easier to write and maintain. The library also exposes a robust developer API to help you debug and fix test failures substantially faster.
This package is part of the PSR Mock suite of mocking libraries.
Requirements
- PHP 8.1+
- Composer 2.0+
Installation
composer require --dev psr-mock/http-client-implementation
Only install this library as a development dependency (--dev
).
It's not built for use in production environments.
This library is not produced or endorsed by, or otherwise affiliated with, the PHP-FIG.