| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 56 | public function testGetCallbackWithUnexistingRoute(): void |
||
| 57 | { |
||
| 58 | // setup |
||
| 59 | $router = new Router(); |
||
| 60 | $router->addRoute('existing-route', function () { |
||
| 61 | return 'existing route result'; |
||
| 62 | }); |
||
| 63 | |||
| 64 | // assertions |
||
| 65 | $this->expectException(\Exception::class); |
||
| 66 | |||
| 67 | // test body |
||
| 68 | $router->getCallback('unexisting-route'); |
||
| 69 | } |
||
| 71 |