Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Tests | 8 |
CRAP Score | 2.032 |
Changes | 0 |
1 | <?php |
||
38 | 1 | public function buildDriver(array $config) |
|
39 | { |
||
40 | 1 | if (!class_exists('Behat\Mink\Driver\BrowserKitDriver')) { |
|
41 | throw new \RuntimeException( |
||
42 | 'Install MinkBrowserKitDriver in order to use the behat3Symfony driver.' |
||
43 | ); |
||
44 | } |
||
45 | |||
46 | 1 | return new Definition( |
|
47 | 1 | KernelDriver::class, |
|
48 | array( |
||
49 | 1 | new Reference('behat3_symfony_extension.kernel'), |
|
50 | 1 | '%mink.base_url%', |
|
51 | 1 | '%behat3_symfony_extension.kernel.reboot%', |
|
52 | ) |
||
53 | 1 | ); |
|
54 | } |
||
55 | } |
||
56 |