| Conditions | 5 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 19 | protected static function createKernel(array $options = array()) |
||
| 20 | { |
||
| 21 | $class = self::getKernelClass(); |
||
| 22 | |||
| 23 | if (!isset($options['test_case'])) { |
||
| 24 | throw new \InvalidArgumentException('The option "test_case" must be set.'); |
||
| 25 | } |
||
| 26 | |||
| 27 | return new $class( |
||
| 28 | static::getVarDir(), |
||
| 29 | $options['test_case'], |
||
| 30 | isset($options['root_config']) ? $options['root_config'] : 'config.yml', |
||
| 31 | isset($options['environment']) ? $options['environment'] : strtolower(static::getVarDir().$options['test_case']), |
||
| 32 | isset($options['debug']) ? $options['debug'] : true |
||
| 33 | ); |
||
| 43 |