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