| 1 | <?php |
||
| 25 | class VersionActionTest extends TestCase |
||
| 26 | { |
||
| 27 | /** |
||
| 28 | * Tests that the action is invokable. |
||
| 29 | */ |
||
| 30 | public function testIfInvokable() |
||
| 31 | { |
||
| 32 | $request = $this->prophesize(ServerRequestInterface::class)->reveal(); |
||
| 33 | $inResponse = $this->prophesize(ResponseInterface::class)->reveal(); |
||
| 34 | $action = new VersionAction('1.0.0'); |
||
| 35 | $outResponse = $action($request, $inResponse); |
||
| 36 | |||
| 37 | $this->assertInstanceOf(ResponseInterface::class, $outResponse); |
||
| 38 | $this->assertNotSame($inResponse, $outResponse); |
||
| 39 | } |
||
| 40 | } |
||
| 41 |