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