| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 32 | public function testToPsrWithJsonBody() |
||
| 33 | { |
||
| 34 | $rawBody = json_encode(['foo' => 'bar']); |
||
| 35 | |||
| 36 | $server = [ |
||
| 37 | 'CONTENT_TYPE' => ['application/json'], |
||
| 38 | ]; |
||
| 39 | |||
| 40 | $opulenceRequest = new Request([], [], [], $server, [], [], $rawBody); |
||
| 41 | |||
| 42 | $psr7Request = $this->sut->toPsr($opulenceRequest); |
||
| 43 | |||
| 44 | $this->assertInstanceOf(ServerRequestInterface::class, $psr7Request); |
||
| 45 | } |
||
| 47 |