sebastianbergmann/phpunit-selenium — Issue #66: Bug in SeleniumTestCase.php - $e->getComparisonFailure()->toString()
Author: abfan1127
Created: 2011-11-02 04:15:24+00:00
State: open

When I run the default example from the documentation, I get this error:
```Fatal error: Call to a member function toString() on a non-object in .../phpunit/phpunit-selenium/PHPUnit/Extensions/SeleniumTestCase.php on line 1041```

I changed

```php
$e->getComparisonFailure()->toString();
```

to

```php
$e->getComparisionFailure()->exceptionToString;
```

This fixed it.

See the Stackoverflow converstation here: http://stackoverflow.com/questions/7950344/phpunit-selenium-basic-test-fails-with-fatal-error/