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