Conditions | 5 |
Paths | 2 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
29 | protected static function createKernel(array $options = []) |
||
30 | { |
||
31 | $class = self::getKernelClass(); |
||
32 | |||
33 | if (!isset($options['test_case'])) { |
||
34 | throw new \InvalidArgumentException('The option "test_case" must be set.'); |
||
35 | } |
||
36 | |||
37 | return new $class( |
||
38 | $options['test_case'], |
||
39 | isset($options['root_config']) ? $options['root_config'] : 'config.yml', |
||
40 | isset($options['environment']) ? $options['environment'] : 'majoraframeworkextrabundletest'.strtolower($options['test_case']), |
||
41 | isset($options['debug']) ? $options['debug'] : true |
||
42 | ); |
||
43 | } |
||
44 | } |
||
45 |