| Conditions | 2 |
| Paths | 2 |
| Total Lines | 14 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 4 |
| CRAP Score | 2.1481 |
| Changes | 0 | ||
| 1 | <?php |
||
| 46 | 3 | public function buildDriver(array $config) |
|
| 47 | { |
||
| 48 | if (!class_exists('Behat\Mink\Driver\PantherDriver')) { |
||
| 49 | throw new \RuntimeException( |
||
| 50 | 'Install MinkPantherDriver in order to use panther driver.' |
||
| 51 | ); |
||
| 52 | 3 | } |
|
| 53 | 3 | ||
| 54 | return new Definition( |
||
| 55 | 3 | 'Behat\Mink\Driver\PantherDriver', |
|
| 56 | array( |
||
| 57 | $config['options'] ?? [], |
||
| 58 | $config['kernel_options'] ?? [], |
||
| 59 | $config['manager_options'] ?? [], |
||
| 60 | ) |
||
| 64 |