| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 15 | public function testProcess() |
||
| 16 | { |
||
| 17 | $container = $this->createMock(ContainerInterface::class); |
||
| 18 | $container->method('get')->willReturn($this); |
||
| 19 | |||
| 20 | $request = $this->createMock(ServerRequestInterface::class); |
||
| 21 | $handler = $this->createMock(RequestHandlerInterface::class); |
||
| 22 | |||
| 23 | $caller = new ActionCaller('this', 'exampleMethod', $container); |
||
| 24 | |||
| 25 | $response = $caller->process($request, $handler); |
||
| 26 | self::assertEquals(204, $response->getStatusCode()); |
||
| 27 | } |
||
| 34 |