| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 51 | public function buildDriver(array $config) |
||
| 52 | { |
||
| 53 | if (!class_exists('Behat\Mink\Driver\BrowserKitDriver')) { |
||
| 54 | throw new \RuntimeException( |
||
| 55 | 'Install MinkBrowserKitDriver in order to use the symfony2 driver.' |
||
| 56 | ); |
||
| 57 | } |
||
| 58 | |||
| 59 | return new Definition('Behat\Symfony2Extension\Driver\KernelDriver', array( |
||
| 60 | new Reference(Symfony2Extension::KERNEL_ID), |
||
| 61 | '%mink.base_url%', |
||
| 62 | )); |
||
| 63 | } |
||
| 64 | } |
||
| 65 |