sebastianbergmann/phpunit — Issue #513: Enable users to enhance timeout error message
Author: pierri
Created: 2012-02-28 12:20:12+00:00
State: open

As a developer writing PHPUnit_Selenium tests, I would like to provide meaningful error messages when a time out occurs during a waitForCommand.

Currently when a timeout occurs e.g. in method waitForTextPresent('My text');, the only error message I get is "timeout". I would like to be able to specify an error message by writing e.g. waitForTextPresent('My text', 'Timeout while waiting for my result to appear');

---

I guess this would involve updating class PHPUnit_SeleniumTestCase_Driver release 1.0.3, method waitForCommand($command, $arguments, $info), line 1135:
PHPUnit_Framework_Assert::fail('timeout');