1 | <?php |
||
21 | class BrowserConfigurationFactory implements IBrowserConfigurationFactory |
||
22 | { |
||
23 | |||
24 | /** |
||
25 | * Browser configurations. |
||
26 | * |
||
27 | * @var array |
||
28 | */ |
||
29 | protected $browserConfigurations = array(); |
||
30 | |||
31 | /** |
||
32 | * Registers a browser configuration. |
||
33 | * |
||
34 | * @param BrowserConfiguration $browser Browser configuration. |
||
35 | * |
||
36 | * @return void |
||
37 | * @throws \InvalidArgumentException When browser configuration is already registered. |
||
38 | */ |
||
39 | 8 | public function register(BrowserConfiguration $browser) |
|
51 | |||
52 | /** |
||
53 | * Returns browser configuration instance. |
||
54 | * |
||
55 | * @param array $config Browser. |
||
56 | * @param BrowserTestCase $test_case Test case. |
||
57 | * |
||
58 | * @return BrowserConfiguration |
||
59 | */ |
||
60 | 5 | public function createBrowserConfiguration(array $config, BrowserTestCase $test_case) |
|
70 | |||
71 | /** |
||
72 | * Creates browser configuration based on give type. |
||
73 | * |
||
74 | * @param string $type Type. |
||
75 | * |
||
76 | * @return BrowserConfiguration |
||
77 | * @throws \InvalidArgumentException When browser configuration not registered. |
||
78 | */ |
||
79 | 5 | protected function create($type) |
|
87 | |||
88 | } |
||
89 |