| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 26 | public function testConstruct($environment, $debug) |
||
| 27 | { |
||
| 28 | // create kernel |
||
| 29 | $kernel = new Kernel($environment, $debug); |
||
| 30 | |||
| 31 | // assert |
||
| 32 | $this->assertInstanceOf('\CLIFramework\Kernel', $kernel); |
||
| 33 | $this->assertEquals($environment, $kernel->getEnvironment()); |
||
| 34 | $this->assertEquals($debug, $kernel->isDebug()); |
||
| 35 | } |
||
| 36 | |||
| 69 |
This check looks for the generic type
arrayas a return type and suggests a more specific type. This type is inferred from the actual code.