sebastianbergmann/phpunit-selenium — Issue #79: Wrong Argument Passed to Exception (1095) SeleniumTestCase::onNotSuccessfulTest()
Author: mediaslave
Created: 2011-12-02 16:14:58+00:00
State: open

Error:

Argument 2 passed to PHPUnit_Framework_ExpectationFailedException::__construct() must be an instance of PHPUnit_Framework_ComparisonFailure, string given, called in /usr/share/php/PHPUnit/Extensions/SeleniumTestCase.php on line 1095 and defined

Test:

public function edit(){
$this->click("link=foo");
$this->waitForPageToLoad("30000");
$this->click("link=bar");
$this->waitForPageToLoad("30000");
$this->click("link=Edit");
$this->waitForPageToLoad("30000");
$this->click("id=Save_id");
$this->waitForPageToLoad("30000");
$this->assertTrue($this->isTextPresent("The system has updated record."));
}

Versions:

PHPUnit: 3.6.4
PHPUnit_Selenium: 1.1.1
Selenium Server: 2.14.0