1 | <?php |
||
19 | abstract class AbstractTestCase extends \PHPUnit_Framework_TestCase |
||
20 | { |
||
21 | use WebTrait; |
||
22 | use WaitTrait; |
||
23 | use ClickTrait; |
||
24 | use InputTrait; |
||
25 | use NotifyTrait; |
||
26 | use WindowTrait; |
||
27 | use ElementTrait; |
||
28 | use ElementsTrait; |
||
29 | use ScreenshotTrait; |
||
30 | |||
31 | /** |
||
32 | * Selenium Web Driver host URI |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | protected static $webDriverHost = 'http://localhost:%s/wd/hub'; |
||
37 | |||
38 | /** |
||
39 | * Selenium Web Driver port |
||
40 | * |
||
41 | * @var string |
||
42 | */ |
||
43 | protected static $webDriverPort = '4444'; |
||
44 | |||
45 | /** |
||
46 | * @var string |
||
47 | */ |
||
48 | protected static $webDriverBrowser = 'firefox'; |
||
49 | |||
50 | /** |
||
51 | * @var string |
||
52 | */ |
||
53 | protected static $webDriverScreen = '1920x1080'; |
||
54 | |||
55 | /** |
||
56 | * @var string |
||
57 | */ |
||
58 | protected $browser; |
||
59 | |||
60 | /** |
||
61 | * @var string |
||
62 | */ |
||
63 | protected $browserBin; |
||
64 | |||
65 | /** |
||
66 | * @var string |
||
67 | */ |
||
68 | protected $uri; |
||
69 | |||
70 | /** |
||
71 | * @var PHPWebDriver_WebDriver |
||
72 | */ |
||
73 | protected $webDriver; |
||
74 | |||
75 | /** |
||
76 | * @var \PHPWebDriver_WebDriverSession|WebDriver\SessionInterface |
||
77 | */ |
||
78 | protected $session; |
||
79 | |||
80 | /** |
||
81 | * Resolves URI to open session |
||
82 | */ |
||
83 | protected function setUp() |
||
91 | |||
92 | /** |
||
93 | * @return void |
||
94 | */ |
||
95 | protected function tearDown() |
||
99 | |||
100 | /** |
||
101 | * @param Exception $exc |
||
102 | */ |
||
103 | protected function onNotSuccessfulTest(Exception $exc) |
||
109 | |||
110 | /** |
||
111 | * @return \PHPWebDriver_WebDriverSession|WebDriver\SessionInterface |
||
112 | */ |
||
113 | public function getSession() |
||
117 | |||
118 | /** |
||
119 | * @return string |
||
120 | */ |
||
121 | protected function getBrowser() |
||
125 | |||
126 | /** |
||
127 | * @return string |
||
128 | */ |
||
129 | protected function getBrowserBin() |
||
133 | |||
134 | /** |
||
135 | * @param string $bin |
||
136 | * @return string |
||
137 | */ |
||
138 | protected function setBrowserBin($bin) |
||
143 | |||
144 | /** |
||
145 | * Resolve Selenium WebDriver host |
||
146 | * |
||
147 | * @return string |
||
148 | */ |
||
149 | protected function resolveHost() |
||
155 | |||
156 | /** |
||
157 | * Resolve Selenium WebDriver port |
||
158 | * |
||
159 | * @return string |
||
160 | */ |
||
161 | protected function resolvePort() |
||
167 | |||
168 | /** |
||
169 | * Resolve test target URI |
||
170 | * |
||
171 | * @return string |
||
172 | */ |
||
173 | protected function resolveUri() |
||
181 | |||
182 | /** |
||
183 | * Resolve test session browser |
||
184 | * |
||
185 | * @return string |
||
186 | */ |
||
187 | protected function resolveBrowser() |
||
204 | |||
205 | /** |
||
206 | * @return array |
||
207 | */ |
||
208 | protected function resolveWindowSize() |
||
215 | |||
216 | /** |
||
217 | * Resolve test session capabilities |
||
218 | * |
||
219 | * @return array |
||
220 | */ |
||
221 | protected function resolveCapabilities() |
||
238 | } |
||
239 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.