| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function testAddGetRoute(): void |
||
| 24 | { |
||
| 25 | // setup |
||
| 26 | $router = new Router(); |
||
| 27 | $route = 'route'; |
||
| 28 | RouterUnitTest::setRequestMethod('GET'); |
||
| 29 | |||
| 30 | // test body |
||
| 31 | $router->addGetRoute($route, $this, 'actionRoute'); |
||
| 32 | |||
| 33 | // assertions |
||
| 34 | $this->assertEquals(1, $router->callRoute($route)); |
||
| 35 | } |
||
| 54 |