| Conditions | 2 |
| Paths | 2 |
| Total Lines | 20 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 11 |
| CRAP Score | 2.0145 |
| Changes | 0 | ||
| 1 | <?php |
||
| 39 | 1 | public function buildDriver(array $config) |
|
| 40 | { |
||
| 41 | 1 | if (!class_exists('Behat\Mink\Driver\BrowserKitDriver')) { |
|
| 42 | throw new \RuntimeException( |
||
| 43 | 'Install MinkBrowserKitDriver in order to use the behat3Symfony driver.' |
||
| 44 | ); |
||
| 45 | } |
||
| 46 | |||
| 47 | 1 | return new Definition( |
|
| 48 | 1 | KernelDriver::class, |
|
| 49 | array( |
||
| 50 | 1 | new Reference(Behat3SymfonyExtension::KERNEL_SERVICE_ID), |
|
| 51 | 1 | '%mink.base_url%', |
|
| 52 | 1 | sprintf( |
|
| 53 | 1 | '%%%s.kernel.reboot%%', |
|
| 54 | Behat3SymfonyExtension::BASE_CONTAINER_ID |
||
| 55 | 1 | ) |
|
| 56 | 1 | ) |
|
| 57 | 1 | ); |
|
| 58 | } |
||
| 59 | } |
||
| 60 |