1 | <?php |
||
18 | class ZombieDriverFactory implements IMinkDriverFactory |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * Returns driver name, that can be used in browser configuration. |
||
23 | * |
||
24 | * @return string |
||
25 | */ |
||
26 | 10 | public function getDriverName() |
|
30 | |||
31 | /** |
||
32 | * Returns default values for browser configuration. |
||
33 | * |
||
34 | * @return array |
||
35 | */ |
||
36 | 1 | public function getDriverDefaults() |
|
48 | |||
49 | /** |
||
50 | * Returns a new driver instance according to the browser configuration. |
||
51 | * |
||
52 | * @param BrowserConfiguration $browser The browser configuration. |
||
53 | * |
||
54 | * @return DriverInterface |
||
55 | * @throws \RuntimeException When driver isn't installed. |
||
56 | */ |
||
57 | 1 | public function createDriver(BrowserConfiguration $browser) |
|
78 | |||
79 | } |
||
80 |