Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types = 1); |
||
37 | public function bootKernelWith(array $bundles = [], array $configFiles = []): TestKernel |
||
38 | { |
||
39 | $randomEnvironment = bin2hex(random_bytes(10)); |
||
40 | $kernel = new TestKernel($randomEnvironment, true); |
||
41 | |||
42 | $kernel->addBundleClasses($bundles); |
||
43 | $kernel->addConfigFiles($configFiles); |
||
44 | $kernel->boot(); |
||
45 | |||
46 | return $kernel; |
||
47 | } |
||
48 | |||
59 |