https://github.com/php-http/psr7-integration-tests
https://github.com/php-http/psr7-integration-tests
psr-7
Last synced: 10 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/php-http/psr7-integration-tests
- Owner: php-http
- License: mit
- Created: 2017-02-12T12:39:32.000Z (about 8 years ago)
- Default Branch: 1.x
- Last Pushed: 2024-03-25T11:04:55.000Z (about 1 year ago)
- Last Synced: 2024-04-25T12:20:39.271Z (12 months ago)
- Topics: psr-7
- Language: PHP
- Size: 118 KB
- Stars: 39
- Watchers: 10
- Forks: 21
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: .github/CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# 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) |
| Fatfree | [](https://github.com/php-http/psr7-integration-tests/actions/workflows/fatfree.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
```The names are `Guzzle`, `Laminas`, `Slim`, `Nyholm`, `RingCentral`, `HttpSoft`, `Fatfree`.
It is also possible to exclude tests that require a live internet connection:
``` bash
$ composer test -- --testsuite --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 [[email protected]](mailto:[email protected]).
## License
The MIT License (MIT). Please see [License File](LICENSE) for more information.