File tree Expand file tree Collapse file tree 3 files changed +11
-97
lines changed Expand file tree Collapse file tree 3 files changed +11
-97
lines changed Original file line number Diff line number Diff line change 18
18
19
19
class DummyServerRequest implements ServerRequestInterface
20
20
{
21
- public ?UriInterface $ uri ;
21
+ public ?UriInterface $ uri ;
22
+ public StreamInterface $ dummyStream ;
22
23
23
- public function __construct (UriInterface $ uri = null )
24
+ public function __construct (? UriInterface $ uri = null )
24
25
{
25
26
$ this ->uri = $ uri ;
26
27
}
@@ -87,7 +88,7 @@ public function withoutHeader($name): self
87
88
88
89
public function getBody (): StreamInterface
89
90
{
90
- return new DummyStream () ;
91
+ return $ this -> dummyStream ;
91
92
}
92
93
93
94
public function withBody (StreamInterface $ body ): self
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 17
17
18
18
class FakeResponse implements ResponseInterface
19
19
{
20
- public string $ body ;
21
- public array $ headers = [];
22
- public string $ protocol = '1.1 ' ;
23
- public int $ status = 200 ;
24
- public string $ reason = 'OK ' ;
20
+ public string $ body ;
21
+ public array $ headers = [];
22
+ public string $ protocol = '1.1 ' ;
23
+ public int $ status = 200 ;
24
+ public string $ reason = 'OK ' ;
25
+ public StreamInterface $ dummyStream ;
25
26
26
27
public function __construct (string $ body = '' )
27
28
{
@@ -79,7 +80,7 @@ public function withoutHeader($name): self
79
80
80
81
public function getBody (): StreamInterface
81
82
{
82
- return new DummyStream () ;
83
+ return $ this -> dummyStream ;
83
84
}
84
85
85
86
public function withBody (StreamInterface $ body ): self
You can’t perform that action at this time.
0 commit comments