1 | <?php |
||
19 | class KernelBuilder |
||
20 | { |
||
21 | /** |
||
22 | * Defines default test kernel class name |
||
23 | * |
||
24 | * @var string |
||
25 | */ |
||
26 | protected static $defaultTestKernelClass = '\Gtt\Bundle\WorkflowExtensionsBundle\Tests\Functional\Kernel\BaseTestKernel'; |
||
27 | |||
28 | /** |
||
29 | * Returns kernel instance |
||
30 | * |
||
31 | * @param string $kernelClass kernel class name need to be instantiated |
||
32 | * @param array $options kernel configuration options |
||
33 | * base options: |
||
34 | * environment - environment |
||
35 | * debug - debug mode |
||
36 | * test kernel specific options (for TestKernelInterface instances) |
||
37 | * app_name - name of test application kernel |
||
38 | * test_case - directory name where kernel configs are stored |
||
39 | * config_dir - path to directory with test cases configurations |
||
40 | * root_config - name of the application config file |
||
41 | * root_dir - path to root directory of test application. Can be unset |
||
42 | * |
||
43 | * @throws \InvalidArgumentException in case of invalid options specified |
||
44 | * |
||
45 | * @return \Symfony\Component\HttpKernel\KernelInterface |
||
46 | */ |
||
47 | public static function getKernel($kernelClass = null, array $options = array()) |
||
91 | } |
||
92 |