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