Behat/Mink — Issue #214: JUnitFormatter makes ResponseTextException::_toString() throw exception
Author: MPV
Created: 2012-03-09 16:46:28+00:00
State: open

Hi,
When we run this:

behat --profile test --config tests/acceptance/behat.yml --out build/logs/ --format junit --tags=@jenkins tests/acceptance/features/

We get:

PHP Fatal error: Method Behat\Mink\Exception\ResponseTextException::__toString() must not throw an exception in /path/to/pear/php/behat/src/Behat/Behat/Formatter/JUnitFormatter.php on line 254

Fatal error: Method Behat\Mink\Exception\ResponseTextException::__toString() must not throw an exception in /path/to/pear/php/behat/src/Behat/Behat/Formatter/JUnitFormatter.php on line 254

We tried searching in other issues but the closest we could find was this fix:
https://github.com/Behat/Mink/commit/2123f24b563ebbe2c3e6a3bf9e613eb934c05eb1

I'm not sure if that fix is a part of the Mink version we're using or not?

The "CHANGES.md" file in our Mink says:

1.3.2 / 2011-12-21
==================

* Fixed webdriver registration in MinkContext