php-http / client-integration-tests
HTTP Client integration tests
Installs: 62 627
Dependents: 35
Suggesters: 0
Security: 0
Stars: 15
Watchers: 8
Forks: 9
Open Issues: 1
Requires
- php: ^7.4 || ^8.0
- guzzlehttp/psr7: ^1.9 || ^2.0
- php-http/message: ^1.0 || ^2.0
- php-http/message-factory: ^1.0
- phpunit/phpunit: ^9.6.17
- th3n3rd/cartesian-product: ^0.3
Requires (Dev)
- nyholm/psr7: ^1.8@dev
- php-http/httplug: ^2.0
Suggests
- php-http/httplug: To test async client
README
HTTP Client integration tests.
Install
Via Composer
composer require php-http/client-integration-tests
Usage
This package should not be used on its own. It provides integration tests for HTTP Clients.
Running tests for HTTP Adapters
Start the HTTP Test server:
vendor/bin/http_test_server
Install an adapter.
composer require php-http/curl-client laminas/laminas-diactoros
Run the tests.
./vendor/bin/phpunit --testsuite curl --printer "Http\Client\Tests\ResultPrinter"
Contributing
Please see our contributing guide.
Security
If you discover any security related issues, please contact us at security@php-http.org.
License
The MIT License (MIT). Please see License File for more information.