File: README.md

package info (click to toggle)
php-http-psr7-integration-tests 1.4.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 452 kB
  • sloc: php: 1,593; makefile: 19
file content (67 lines) | stat: -rw-r--r-- 3,181 bytes parent folder | download
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

[![Total Downloads](https://img.shields.io/packagist/dt/php-http/psr7-integration-tests.svg?style=flat-square)](https://packagist.org/packages/php-http/psr7-integration-tests)

**Test PSR7 implementations against the specification.**

## Status

| PSR7 Implementation | Status        | Legacy |
| ------------------- |:-------------:|:------:|
| Guzzle              | [![Guzzle](https://github.com/php-http/psr7-integration-tests/actions/workflows/guzzle.yml/badge.svg)](https://github.com/php-http/psr7-integration-tests/actions/workflows/guzzle.yml)                |
| Laminas             | [![Laminas](https://github.com/php-http/psr7-integration-tests/actions/workflows/laminas.yml/badge.svg)](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                | [![Slim](https://github.com/php-http/psr7-integration-tests/actions/workflows/slim.yml/badge.svg)](https://github.com/php-http/psr7-integration-tests/actions/workflows/slim.yml)                      |
| Nyholm              | [![Nyholm](https://github.com/php-http/psr7-integration-tests/actions/workflows/nyholm.yml/badge.svg)](https://github.com/php-http/psr7-integration-tests/actions/workflows/nyholm.yml)                |
| RingCentral         | [![RingCentral](https://github.com/php-http/psr7-integration-tests/actions/workflows/ringcentral.yml/badge.svg)](https://github.com/php-http/psr7-integration-tests/actions/workflows/ringcentral.yml) |
| HttpSoft            |  [![HttpSoft](https://github.com/php-http/psr7-integration-tests/actions/workflows/httpsoft.yml/badge.svg)](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.