Behat/Mink — Issue #157: ResponseTextException::_toString must not throw an exception, using SahiDriver and JUnit Formatter
Author: gabrielpillet
Created: 2012-01-02 11:01:05+00:00
State: open

When using Sahi with JUnitFormatter, I got this fatal error.

It occurs when the scenari get a code 500, somewhere in ResponseTextException::_toString(), we call

Exception::getResponseInfo()

which calls SahiDriver::getCurrentUrl() which throws this Exception :

```
Command execution time limit reached: `_sahi.setServerVarPlain('___lastValue___4f018b46be4c7', document.URL)`
```

This exception is thrown inside ResponseTextException::_toString, resulting as a PHP Fatal error.