Conditions | 2 |
Paths | 2 |
Total Lines | 19 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
54 | public function buildDriver(array $config) |
||
55 | { |
||
56 | if (!class_exists('Behat\Mink\Driver\ZombieDriver')) { |
||
57 | throw new \RuntimeException( |
||
58 | 'Install MinkZombieDriver in order to use zombie driver.' |
||
59 | ); |
||
60 | } |
||
61 | |||
62 | return new Definition('Behat\Mink\Driver\ZombieDriver', array( |
||
63 | new Definition('Behat\Mink\Driver\NodeJS\Server\ZombieServer', array( |
||
64 | $config['host'], |
||
65 | $config['port'], |
||
66 | $config['node_bin'], |
||
67 | $config['server_path'], |
||
68 | $config['threshold'], |
||
69 | $config['node_modules_path'], |
||
70 | )), |
||
71 | )); |
||
72 | } |
||
73 | } |
||
74 |