Skip to content

Commit a48866b

Browse files
committed
Removed unused test dummy
1 parent 710ab31 commit a48866b

File tree

3 files changed

+11
-97
lines changed

3 files changed

+11
-97
lines changed

tests/Doubles/DummyServerRequest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@
1818

1919
class DummyServerRequest implements ServerRequestInterface
2020
{
21-
public ?UriInterface $uri;
21+
public ?UriInterface $uri;
22+
public StreamInterface $dummyStream;
2223

23-
public function __construct(UriInterface $uri = null)
24+
public function __construct(?UriInterface $uri = null)
2425
{
2526
$this->uri = $uri;
2627
}
@@ -87,7 +88,7 @@ public function withoutHeader($name): self
8788

8889
public function getBody(): StreamInterface
8990
{
90-
return new DummyStream();
91+
return $this->dummyStream;
9192
}
9293

9394
public function withBody(StreamInterface $body): self

tests/Doubles/DummyStream.php

Lines changed: 0 additions & 88 deletions
This file was deleted.

tests/Doubles/FakeResponse.php

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,12 @@
1717

1818
class FakeResponse implements ResponseInterface
1919
{
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;
2526

2627
public function __construct(string $body = '')
2728
{
@@ -79,7 +80,7 @@ public function withoutHeader($name): self
7980

8081
public function getBody(): StreamInterface
8182
{
82-
return new DummyStream();
83+
return $this->dummyStream;
8384
}
8485

8586
public function withBody(StreamInterface $body): self

0 commit comments

Comments
 (0)