| Conditions | 2 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function buildDriver(array $config) |
||
| 39 | { |
||
| 40 | 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 | return new Definition( |
||
| 47 | KernelDriver::class, |
||
| 48 | array( |
||
| 49 | new Reference('behat3_symfony_extension.kernel'), |
||
| 50 | '%mink.base_url%', |
||
| 51 | '%behat3_symfony_extension.kernel.reboot%', |
||
| 52 | ) |
||
| 53 | ); |
||
| 54 | } |
||
| 55 | } |
||
| 56 |