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

Commit

Permalink
Integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
fenric committed Dec 19, 2018
1 parent 9ad8432 commit f300669
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"psr/http-message": "^1.0"
},
"require-dev": {
"phpunit/phpunit": "7.5.1"
"phpunit/phpunit": "7.5.1",
"php-http/psr7-integration-tests": "dev-master"
},
"provide": {
"psr/http-message-implementation": "1.0"
Expand Down
4 changes: 4 additions & 0 deletions phpunit.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,8 @@
<directory>./tests/</directory>
</testsuite>
</testsuites>

<php>
<const name="STREAM_FACTORY" value="Sunrise\Stream\StreamFactory"/>
</php>
</phpunit>
14 changes: 14 additions & 0 deletions tests/StreamIntegrationTest.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

namespace Sunrise\Stream\Tests;

use Http\Psr7Test\StreamIntegrationTest as BaseStreamIntegrationTest;
use Sunrise\Stream\Stream;

class StreamIntegrationTest extends BaseStreamIntegrationTest
{
public function createStream($resource)
{
return new Stream($resource);
}
}

0 comments on commit f300669

Please sign in to comment.