Skip to content

Commit 4f0bd65

Browse files
committed
:octocat: PSR-17 integration tests http-interop/http-factory-tests#40
1 parent e2f01d2 commit 4f0bd65

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

composer.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
},
4343
"require-dev": {
4444
"phpunit/phpunit": "^8.0",
45-
"guzzlehttp/psr7": "^1.5"
45+
"guzzlehttp/psr7": "^1.5",
46+
"http-interop/http-factory-tests": "dev-master"
4647
},
4748
"autoload": {
4849
"files": [

phpunit.xml

+11
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,18 @@
1616
<testsuite name="php-httpinterface test suite">
1717
<directory suffix=".php">./tests</directory>
1818
</testsuite>
19+
<testsuite name="http-interop Integration tests">
20+
<directory>./vendor/http-interop/http-factory-tests/test</directory>
21+
</testsuite>
1922
</testsuites>
23+
<php>
24+
<const name="REQUEST_FACTORY" value="chillerlan\HTTP\Psr17\RequestFactory"/>
25+
<const name="RESPONSE_FACTORY" value="chillerlan\HTTP\Psr17\ResponseFactory"/>
26+
<const name="SERVER_REQUEST_FACTORY" value="chillerlan\HTTP\Psr17\ServerRequestFactory"/>
27+
<const name="STREAM_FACTORY" value="chillerlan\HTTP\Psr17\StreamFactory"/>
28+
<const name="UPLOADED_FILE_FACTORY" value="chillerlan\HTTP\Psr17\UploadedFileFactory"/>
29+
<const name="URI_FACTORY" value="chillerlan\HTTP\Psr17\UriFactory"/>
30+
</php>
2031
<filter>
2132
<whitelist>
2233
<directory suffix=".php">./src</directory>

0 commit comments

Comments
 (0)