1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
# HTTP Message
[](https://packagist.org/packages/php-http/psr7-integration-tests)
**Test PSR7 implementations against the specification.**
## Status
| PSR7 Implementation | Status | Legacy |
| ------------------- |:-------------:|:------:|
| Guzzle | [](https://github.com/php-http/psr7-integration-tests/actions/workflows/guzzle.yml) |
| Laminas | [](https://github.com/php-http/psr7-integration-tests/actions/workflows/laminas.yml) | [Legacy](https://github.com/php-http/psr7-integration-tests/actions/workflows/laminas-legacy.yml) (failures expected) |
| Slim | [](https://github.com/php-http/psr7-integration-tests/actions/workflows/slim.yml) |
| Nyholm | [](https://github.com/php-http/psr7-integration-tests/actions/workflows/nyholm.yml) |
| RingCentral | [](https://github.com/php-http/psr7-integration-tests/actions/workflows/ringcentral.yml) |
| HttpSoft | [](https://github.com/php-http/psr7-integration-tests/actions/workflows/httpsoft.yml) |
## Install
To use the integration tests with a PSR-7 implementation, add this package to the dev dependencies:
``` bash
$ composer require --dev php-http/psr7-integration-tests
```
Then set up phpunit to run the tests for your implementation.
## Documentation
Please see the [official documentation](http://docs.php-http.org/en/latest).
## Testing
This repository also is set up to test a couple of implementations directly. You need to install dependencies from source for the tests to work:
``` bash
$ composer update --prefer-source
```
**Note:** If you already have the sources installed, you need to delete the vendor folder before running the above command.
Run the test suite for one implementation with:
``` bash
$ composer test -- --testsuite <name>
```
The names are `Guzzle`, `Laminas`, `Slim`, `Nyholm`, `RingCentral`.
It is also possible to exclude tests that require a live internet connection:
``` bash
$ composer test -- --testsuite <name> --exclude-group internet
```
## Contributing
Please see our [contributing guide](http://docs.php-http.org/en/latest/development/contributing.html).
## Security
If you discover any security related issues, please contact us at [security@php-http.org](mailto:security@php-http.org).
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.
|