Conditions | 2 |
Paths | 2 |
Total Lines | 17 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
51 | public function buildDriver(array $config) |
||
52 | { |
||
53 | if (!class_exists('Behat\Mink\Driver\SeleniumDriver')) { |
||
54 | throw new \RuntimeException( |
||
55 | 'Install MinkSeleniumDriver in order to activate selenium session.' |
||
56 | ); |
||
57 | } |
||
58 | |||
59 | return new Definition('Behat\Mink\Driver\SeleniumDriver', array( |
||
60 | $config['browser'], |
||
61 | '%mink.base_url%', |
||
62 | new Definition('Selenium\Client', array( |
||
63 | $config['host'], |
||
64 | $config['port'], |
||
65 | )), |
||
66 | )); |
||
67 | } |
||
68 | } |
||
69 |