| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function test_get_route_found(): void |
||
| 25 | { |
||
| 26 | $router = Router::withServer([ |
||
| 27 | 'REQUEST_METHOD' => 'GET', |
||
| 28 | 'REQUEST_URI' => '/foo/?bar=123000', |
||
| 29 | ]); |
||
| 30 | $router->get('/foo', static function (): void { |
||
| 31 | echo 'route found'; |
||
| 32 | }); |
||
| 33 | |||
| 34 | $router->listen(); |
||
| 35 | |||
| 36 | $this->expectOutputString('route found'); |
||
| 37 | } |
||
| 39 |