Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong Argument Passed to Exception (1095) SeleniumTestCase::onNotSuccessfulTest() #79

Closed
mediaslave opened this issue Dec 2, 2011 · 3 comments

Comments

@mediaslave
Copy link

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

@giorgiosironi
Copy link
Owner

Thanks for reporting. This bug has been fixed yesterday in the master.

@sebastianbergmann
Copy link
Contributor

Do let me know when master is ready for another release. Thanks!

@mediaslave
Copy link
Author

Thanks guys!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants