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