| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 19 | public function testIsDebug($value, $debug) |
||
| 20 | { |
||
| 21 | $container = new Container(); |
||
| 22 | Container::setInstance($container); |
||
| 23 | \Nip\Container\Utility\Container::container(true); |
||
| 24 | |||
| 25 | $config = new Config(['app' => ['debug' => $value]]); |
||
| 26 | $container->set('config', $config); |
||
| 27 | |||
| 28 | $handler = new Handler($container); |
||
| 29 | self::assertSame($debug, $handler->isDebug()); |
||
| 30 | } |
||
| 49 |