Behat/Mink — Issue #200: Exception from ResponseTextException::__toString()
Author: irs
Created: 2012-02-23 17:29:50+00:00
State: open

I have got following error in verbose mode:

Fatal error: Method Behat\Mink\Exception\ResponseTextException::__toString() must not throw an exception in C:\PEAR\pear\behat\src\Behat\Behat\Formatter\PrettyFormatter.php on line 809

Call Stack:
--- alala ---
16. call_user_func() C:\PEAR\pear\Symfony\Component\EventDispatcher\EventDispatcher.php:148
17. Behat\Behat\Formatter\PrettyFormatter->afterStep() C:\PEAR\pear\Symfony\Component\EventDispatcher\EventDispatcher.php:148
18. Behat\Behat\Formatter\PrettyFormatter->printStep() C:\PEAR\pear\behat\src\Behat\Behat\Formatter\PrettyFormatter.php:344
19. Behat\Behat\Formatter\PrettyFormatter->printStepException() C:\PEAR\pear\behat\src\Behat\Behat\Formatter\PrettyFormatter.php:700

It's due to next exception was thrown from `Behat\Mink\Exception::getResponseInfo`

exception 'Behat\Mink\Exception\UnsupportedDriverActionException' with message 'Status code is not supported by Behat\Mink\Driver\Selenium2Driver' in C:\PEAR\pear\mink\src\Behat\Mink\Driver\Selenium2Driver.php:376
Stack trace:
#0 C:\PEAR\pear\mink\src\Behat\Mink\Session.php(192): Behat\Mink\Driver\Selenium2Driver->getStatusCode()
#1 C:\PEAR\pear\mink\src\Behat\Mink\Exception\Exception.php(112): Behat\Mink\Session->getStatusCode()
#2 C:\PEAR\pear\mink\src\Behat\Mink\Exception\ResponseTextException.php(31): Behat\Mink\Exception\Exception->getResponseInfo()
#3 C:\PEAR\pear\behat\src\Behat\Behat\Formatter\PrettyFormatter.php(809): Behat\Mink\Exception\ResponseTextException->__toString()
#4 C:\PEAR\pear\behat\src\Behat\Behat\Formatter\PrettyFormatter.php(700): Behat\Behat\Formatter\PrettyFormatter->printStepException(Object(Behat\Mink\Exception\ResponseTextException), 'failed')
--- alala ----