| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 29 | public function testHandle() : void |
||
| 30 | { |
||
| 31 | $container = $this->getContainer(); |
||
| 32 | |||
| 33 | $request = (new ServerRequestFactory) |
||
| 34 | ->createServerRequest('GET', '/home'); |
||
| 35 | |||
| 36 | $response = $container->get('router') |
||
| 37 | ->getRoute(self::ROUTE_NAME) |
||
| 38 | ->handle($request); |
||
| 39 | |||
| 40 | $this->assertSame(200, $response->getStatusCode()); |
||
| 41 | } |
||
| 43 |