sebastianbergmann/phpunit-selenium — Issue #67: call to non existant function PHPUnit_Framework_ExpectationFailedException::setCustomMessage in SeleniumTestCase.php
Author: mstolt
Created: 2011-11-04 13:41:49+00:00
State: open

On line 1068 you tried to "change" the message of an exception? Is that the purpose of "setCustomMessage"?
This fails because there is no such method on the Object. It is certanly of the type PHPUnit_Framework_ExpectationFailedException. And on that class or its ancestors i can not find a setCustomMessage method.
I have the PHPUnit 3.6 installed.

The line is 1068 in SeleniumTestCase.php.

$e->setCustomMessage($buffer);

i "solved" the problem by replacing it with

$e=new PHPUnit_Framework_ExpectationFailedException($buffer);

Greetings