| Conditions | 2 |
| Paths | 2 |
| Total Lines | 16 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2.0438 |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | 1 | public function buildDriver(array $config) |
|
| 41 | { |
||
| 42 | 1 | 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 | 1 | return new Definition( |
|
| 49 | 1 | BrowserKitDriver::class, |
|
| 50 | [ |
||
| 51 | 1 | new Reference(Behat3SymfonyExtension::TEST_CLIENT_SERVICE_ID), |
|
| 52 | 1 | '%mink.base_url%', |
|
| 53 | ] |
||
| 54 | 1 | ); |
|
| 55 | } |
||
| 56 | } |
||
| 57 |