| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 16 | public function testThatSettingSomeDataItWillGiveItBack() |
||
| 17 | { |
||
| 18 | $apiAction = new ApiActionStub( |
||
| 19 | $this->getMock(RequestInterface::class), |
||
| 20 | new ResponseStub(), |
||
| 21 | [] |
||
| 22 | ); |
||
| 23 | |||
| 24 | $response = $apiAction->dispatch(); |
||
| 25 | $this->assertInstanceOf(StreamInterface::class, $response->getBody()); |
||
| 26 | $body = $response->getBody()->__toString(); |
||
| 27 | $this->assertNotEmpty($body); |
||
| 28 | } |
||
| 29 | |||
| 53 |