1 | <?php |
||
18 | class SahiDriverFactory 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() |
|
47 | |||
48 | /** |
||
49 | * Returns a new driver instance according to the browser configuration. |
||
50 | * |
||
51 | * @param BrowserConfiguration $browser The browser configuration. |
||
52 | * |
||
53 | * @return DriverInterface |
||
54 | * @throws \RuntimeException When driver isn't installed. |
||
55 | */ |
||
56 | 1 | public function createDriver(BrowserConfiguration $browser) |
|
79 | |||
80 | } |
||
81 |