| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 25 | public function testCache(): void |
||
| 26 | { |
||
| 27 | $cache = __DIR__ . '/App/runtime/cache/routes.php'; |
||
| 28 | $this->assertFileExists($cache); |
||
| 29 | |||
| 30 | $this->assertIsIterable($this->include($cache)); |
||
| 31 | $this->assertCount(2, $this->include($cache)); |
||
| 32 | |||
| 33 | |||
| 34 | $cli = $this->app->getConsole(); |
||
| 35 | $cli->run('route:reset'); |
||
| 36 | |||
| 37 | $this->assertNull($this->include($cache)); |
||
| 38 | } |
||
| 54 |