Conditions | 2 |
Paths | 2 |
Total Lines | 21 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
53 | public function buildDriver(array $config) |
||
54 | { |
||
55 | if (!class_exists('Behat\Mink\Driver\SahiDriver')) { |
||
56 | throw new \RuntimeException( |
||
57 | 'Install MinkSahiDriver in order to use sahi driver.' |
||
58 | ); |
||
59 | } |
||
60 | |||
61 | return new Definition('Behat\Mink\Driver\SahiDriver', array( |
||
62 | '%mink.browser_name%', |
||
63 | new Definition('Behat\SahiClient\Client', array( |
||
64 | new Definition('Behat\SahiClient\Connection', array( |
||
65 | $config['sid'], |
||
66 | $config['host'], |
||
67 | $config['port'], |
||
68 | $config['browser'], |
||
69 | $config['limit'], |
||
70 | )), |
||
71 | )), |
||
72 | )); |
||
73 | } |
||
74 | } |
||
75 |