diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2018-08-16 18:13:53 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2018-08-19 14:04:16 +0200 |
commit | 5427ee385dc2ff117a1130eb606f78e708949c8f (patch) | |
tree | fdea2a1ffcf8b85bf32725f5479c8a781f059387 /tests/Unit/Http/Stub | |
parent | 18fd73a899602a473044013854a354254062ebd4 (diff) |
Made Engelsystem\Http\Request PSR-7 RequestInterface compatible
Diffstat (limited to 'tests/Unit/Http/Stub')
-rw-r--r-- | tests/Unit/Http/Stub/MessageTraitRequestImplementation.php | 12 | ||||
-rw-r--r-- | tests/Unit/Http/Stub/MessageTraitResponseImplementation.php (renamed from tests/Unit/Http/Stub/MessageTraitImplementation.php) | 2 |
2 files changed, 13 insertions, 1 deletions
diff --git a/tests/Unit/Http/Stub/MessageTraitRequestImplementation.php b/tests/Unit/Http/Stub/MessageTraitRequestImplementation.php new file mode 100644 index 00000000..04d08913 --- /dev/null +++ b/tests/Unit/Http/Stub/MessageTraitRequestImplementation.php @@ -0,0 +1,12 @@ +<?php + +namespace Engelsystem\Test\Unit\Http\Stub; + +use Engelsystem\Http\MessageTrait; +use Psr\Http\Message\MessageInterface; +use Symfony\Component\HttpFoundation\Request; + +class MessageTraitRequestImplementation extends Request implements MessageInterface +{ + use MessageTrait; +} diff --git a/tests/Unit/Http/Stub/MessageTraitImplementation.php b/tests/Unit/Http/Stub/MessageTraitResponseImplementation.php index d78fd0b2..2ec4b943 100644 --- a/tests/Unit/Http/Stub/MessageTraitImplementation.php +++ b/tests/Unit/Http/Stub/MessageTraitResponseImplementation.php @@ -6,7 +6,7 @@ use Engelsystem\Http\MessageTrait; use Psr\Http\Message\MessageInterface; use Symfony\Component\HttpFoundation\Response; -class MessageTraitImplementation extends Response implements MessageInterface +class MessageTraitResponseImplementation extends Response implements MessageInterface { use MessageTrait; } |