Conditions | 1 |
Paths | 1 |
Total Lines | 18 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
55 | public function testRecover() : void |
||
56 | { |
||
57 | /* setup */ |
||
58 | |||
59 | $formElement = $this->_driver->findElement(WebDriverBy::tagName('form')); |
||
60 | $emailElement = $formElement->findElement(WebDriverBy::id('email')); |
||
61 | $buttonElement = $formElement->findElement(WebDriverBy::tagName('button')); |
||
62 | |||
63 | /* interact */ |
||
64 | |||
65 | $emailElement->sendKeys('[email protected]'); |
||
66 | $buttonElement->click(); |
||
67 | |||
68 | /* compare */ |
||
69 | |||
70 | $this->_driver->wait(5)->until(WebDriverExpectedCondition::urlIs('http://localhost:8000/?p=login')); |
||
|
|||
71 | $this->expectNotToPerformAssertions(); |
||
72 | } |
||
73 | } |
||
74 |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: