Skip to content

Commit 542fba2

Browse files
committed
feat: add fatfree PSR7 package
1 parent 7e7bc95 commit 542fba2

File tree

5 files changed

+33
-10
lines changed

5 files changed

+33
-10
lines changed

Diff for: .github/workflows/fatfree.yml

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Fatfree
2+
3+
on:
4+
push:
5+
branches:
6+
- '*.x'
7+
pull_request:
8+
9+
jobs:
10+
latest:
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
php: [ '8.0', '8.1', '8.2', '8.3' ]
15+
uses: ./.github/workflows/integration.yml
16+
with:
17+
php: ${{ matrix.php }}
18+
suite: Fatfree
19+
package: f3-factory/fatfree-psr7

Diff for: .github/workflows/integration.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
# then we install the dependencies
3333
# and finally require the implementation to test with source flag (to get integration test cases that might be excluded in git-attributes)
3434
run: |
35-
composer remove --dev guzzlehttp/psr7 laminas/laminas-diactoros nyholm/psr7 ringcentral/psr7 slim/psr7 httpsoft/http-message --no-update
35+
composer remove --dev guzzlehttp/psr7 laminas/laminas-diactoros nyholm/psr7 ringcentral/psr7 slim/psr7 httpsoft/http-message f3-factory/fatfree-psr7 --no-update
3636
composer require ${{ inputs.package }} --no-interaction --no-progress --prefer-source
3737
3838
- name: Execute tests

Diff for: README.md

+9-8
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,15 @@
66

77
## Status
88

9-
| PSR7 Implementation | Status | Legacy |
10-
| ------------------- |:-------------:|:------:|
11-
| 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) |
12-
| 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) |
13-
| 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) |
14-
| 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) |
9+
| PSR7 Implementation | Status | Legacy |
10+
|---------------------|:------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------:|:---------------------------------------------------------------------------------------------------------------------:|
11+
| 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) |
12+
| 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) |
13+
| 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) |
14+
| 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) |
1515
| 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) |
16-
| 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) |
16+
| 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) |
17+
| Fatfree | [![HttpSoft](https://github.com/php-http/psr7-integration-tests/actions/workflows/fatfree.yml/badge.svg)](https://github.com/php-http/psr7-integration-tests/actions/workflows/fatfree.yml) |
1718

1819
## Install
1920

@@ -46,7 +47,7 @@ Run the test suite for one implementation with:
4647
$ composer test -- --testsuite <name>
4748
```
4849

49-
The names are `Guzzle`, `Laminas`, `Slim`, `Nyholm`, `RingCentral`.
50+
The names are `Guzzle`, `Laminas`, `Slim`, `Nyholm`, `RingCentral`, `HttpSoft`, `Fatfree`.
5051

5152
It is also possible to exclude tests that require a live internet connection:
5253

Diff for: composer.json

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"psr/http-message": "^1.0 || ^2.0"
2020
},
2121
"require-dev": {
22+
"f3-factory/fatfree-psr7": "^2.0",
2223
"guzzlehttp/psr7": "^1.7 || ^2.0",
2324
"httpsoft/http-message": "^1.1",
2425
"laminas/laminas-diactoros": "^2.1",

Diff for: phpunit.xml.dist

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@
3131
<testsuite name="Nyholm">
3232
<directory>./vendor/nyholm/psr7/tests/Integration/</directory>
3333
</testsuite>
34-
3534
<testsuite name="HttpSoft">
3635
<directory>./vendor/httpsoft/http-message/tests/Integration/</directory>
3736
</testsuite>
37+
<testsuite name="Fatfree">
38+
<directory>./vendor/f3-factory/fatfree-psr7/tests/Integration/</directory>
39+
</testsuite>
3840
</testsuites>
3941
</phpunit>

0 commit comments

Comments
 (0)