summaryrefslogtreecommitdiff
path: root/tests/Unit/Http/MessageTraitRequestTest.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/MessageTraitRequestTest.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/MessageTraitRequestTest.php')
-rw-r--r--tests/Unit/Http/MessageTraitRequestTest.php8
1 files changed, 2 insertions, 6 deletions
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);