| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 71 | public function testGetCallbackWithUnexistingRoute(): void |
||
| 72 | { |
||
| 73 | // setup |
||
| 74 | $router = new Router(); |
||
| 75 | $router->addRoute('existing-route', function () { |
||
| 76 | return 'existing route result'; |
||
| 77 | }); |
||
| 78 | |||
| 79 | // assertions |
||
| 80 | $this->expectException(\Exception::class); |
||
| 81 | |||
| 82 | // test body |
||
| 83 | $router->getCallback('unexisting-route'); |
||
| 84 | } |
||
| 86 |