https://github.com/psr-mock/http-request-handler-implementation
Lightweight mocking library for PSR-15 HTTP Server Request Handler implementations, tailor-made to help you create test suites that are easier to write and maintain.
https://github.com/psr-mock/http-request-handler-implementation
http-request-handler-implementation mocking psr psr-15 testing
Last synced: 5 months ago
JSON representation
Lightweight mocking library for PSR-15 HTTP Server Request Handler implementations, tailor-made to help you create test suites that are easier to write and maintain.
- Host: GitHub
- URL: https://github.com/psr-mock/http-request-handler-implementation
- Owner: psr-mock
- License: mit
- Created: 2023-02-01T09:26:01.000Z (over 3 years ago)
- Default Branch: 1.x
- Last Pushed: 2024-03-05T01:13:04.000Z (over 2 years ago)
- Last Synced: 2024-03-05T01:53:22.042Z (over 2 years ago)
- Topics: http-request-handler-implementation, mocking, psr, psr-15, testing
- Homepage: https://www.php-fig.org/psr/psr-15/
- Size: 15.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
**Lightweight mocking library for [PSR-15 HTTP Server Request Handler](https://www.php-fig.org/psr/psr-15/) implementations, tailor-made to help you create test suites that are easier to write and maintain.**
[](https://codecov.io/gh/psr-mock/http-request-handler-implementation) [](https://packagist.org/packages/psr-mock/http-request-handler-implementation)  
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](https://github.com/psr-mock) suite of mocking libraries.
## Requirements
- PHP 8.1+
- Composer 2.0+
## Installation
```bash
composer require --dev psr-mock/http-request-handler-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.