Skip to content
This repository has been archived by the owner on Dec 31, 2022. It is now read-only.

Commit

Permalink
Integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
fenric committed Dec 17, 2018
1 parent c6bebc0 commit ce9898a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
"sunrise/uri": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "7.4.3"
"phpunit/phpunit": "7.4.3",
"http-interop/http-factory-tests": "^0.5"
},
"provide": {
"psr/http-factory-implementation": "1.0"
Expand Down
12 changes: 12 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,17 @@
<testsuite name="Sunrise HTTP Factory Test Suite">
<directory>./tests/</directory>
</testsuite>
<testsuite name="Integration tests">
<directory>./vendor/http-interop/http-factory-tests/test</directory>
</testsuite>
</testsuites>

<php>
<const name="REQUEST_FACTORY" value="Sunrise\Http\Factory\RequestFactory"/>
<const name="RESPONSE_FACTORY" value="Sunrise\Http\Factory\ResponseFactory"/>
<const name="SERVER_REQUEST_FACTORY" value="Sunrise\Http\Factory\ServerRequestFactory"/>
<const name="STREAM_FACTORY" value="Sunrise\Http\Factory\StreamFactory"/>
<const name="UPLOADED_FILE_FACTORY" value="Sunrise\Http\Factory\UploadedFileFactory"/>
<const name="URI_FACTORY" value="Sunrise\Http\Factory\UriFactory"/>
</php>
</phpunit>

0 comments on commit ce9898a

Please sign in to comment.