| Conditions | 1 |
| Paths | 1 |
| Total Lines | 12 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 57 | public function testBoolResult(callable $handler, bool $expected): void |
||
| 58 | { |
||
| 59 | // setup |
||
| 60 | $router = $this->getRouter(); |
||
| 61 | $router->addRoute('/catalog/[a:cat_id]/', $handler); |
||
| 62 | |||
| 63 | // test body |
||
| 64 | /** @var bool $result */ |
||
| 65 | $result = $router->callRoute('/catalog/foo/'); |
||
| 66 | |||
| 67 | // assertions |
||
| 68 | $this->assertEquals($expected, $result); |
||
| 69 | } |
||
| 71 |