From d9f898a0bba0d44d8212ba2459f7c77808f02643 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Sun, 17 Mar 2019 18:17:33 +0100 Subject: Bugfix: Replaced Diactoros with Symfony PsrHttpFactory to use PhpExtended\HttpMessage implementation Prevents warnings that get converted to errors when run in dev mode --- tests/Unit/Http/MessageTraitRequestTest.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'tests/Unit/Http/MessageTraitRequestTest.php') diff --git a/tests/Unit/Http/MessageTraitRequestTest.php b/tests/Unit/Http/MessageTraitRequestTest.php index 7430b5d7..c3d99afb 100644 --- a/tests/Unit/Http/MessageTraitRequestTest.php +++ b/tests/Unit/Http/MessageTraitRequestTest.php @@ -3,8 +3,8 @@ namespace Engelsystem\Test\Unit\Http; use Engelsystem\Test\Unit\Http\Stub\MessageTraitRequestImplementation; +use PhpExtended\HttpMessage\StringStream; use PHPUnit\Framework\TestCase; -use Zend\Diactoros\Stream; class MessageTraitRequestTest extends TestCase { @@ -36,11 +36,7 @@ class MessageTraitRequestTest 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 MessageTraitRequestImplementation(); $newMessage = $message->withBody($stream); -- cgit v1.2.3-70-g09d2