summaryrefslogtreecommitdiff
path: root/tests/Unit/Http/MessageTraitResponseTest.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-03-17 18:17:33 +0100
committermsquare <msquare@notrademark.de>2019-04-16 20:20:56 +0200
commitd9f898a0bba0d44d8212ba2459f7c77808f02643 (patch)
treeb11225be5b9104e7a7b99dec1faf5a47bf94f464 /tests/Unit/Http/MessageTraitResponseTest.php
parenta1f5154c219255c71e7c5de5003b30c9c2024439 (diff)
Bugfix: Replaced Diactoros with Symfony PsrHttpFactory to use PhpExtended\HttpMessage implementation
Prevents warnings that get converted to errors when run in dev mode
Diffstat (limited to 'tests/Unit/Http/MessageTraitResponseTest.php')
-rw-r--r--tests/Unit/Http/MessageTraitResponseTest.php8
1 files changed, 2 insertions, 6 deletions
diff --git a/tests/Unit/Http/MessageTraitResponseTest.php b/tests/Unit/Http/MessageTraitResponseTest.php
index f60360a3..31b529ee 100644
--- a/tests/Unit/Http/MessageTraitResponseTest.php
+++ b/tests/Unit/Http/MessageTraitResponseTest.php
@@ -3,11 +3,11 @@
namespace Engelsystem\Test\Unit\Http;
use Engelsystem\Test\Unit\Http\Stub\MessageTraitResponseImplementation;
+use PhpExtended\HttpMessage\StringStream;
use PHPUnit\Framework\TestCase;
use Psr\Http\Message\MessageInterface;
use Psr\Http\Message\StreamInterface;
use Symfony\Component\HttpFoundation\Response as SymfonyResponse;
-use Zend\Diactoros\Stream;
class MessageTraitResponseTest extends TestCase
{
@@ -145,11 +145,7 @@ class MessageTraitResponseTest extends TestCase
*/
public function testWithBody()
{
- /** @var Stream $stream */
- $stream = new Stream('php://memory', 'wb+');
- $stream->write('Test content');
- $stream->rewind();
-
+ $stream = new StringStream('Test content');
$message = new MessageTraitResponseImplementation();
$newMessage = $message->withBody($stream);