These are chat archives for Behat/Behat

9th
Jun 2015
Marc Morera
@mmoreram
Jun 09 2015 09:26
@stof Found but not working for me.
I am using define('BEHAT_ERROR_REPORTING', E_ALL & ~E_USER_DEPRECATED); in my main Context file
I am putting define('BEHAT_ERROR_REPORTING', E_ALL & ~E_USER_DEPRECATED); at the beginning of the /bin/behat file (for testing)
I am defining at the beginning of the file the same than is set by DistributionBundle inside bootstrap.php-cache, error_reporting(error_reporting() & ~E_USER_DEPRECATED)
But the deprecation message is still there
When you told me that Behat3 has a configuration setting, you meant that?
:(
Marc Morera
@mmoreram
Jun 09 2015 09:41
Found and solved. Behat3 only work if you add error_reporting(0); in your Context
Christophe Coevoet
@stof
Jun 09 2015 10:41
WTF. This code does not handle the error reporting level except that all or nothing
please open an issue. this is a bug
Marc Morera
@mmoreram
Jun 09 2015 10:41
I know, I know, but I was not able to do nothing. This is just a workaround
okay, opening it
Christophe Coevoet
@stof
Jun 09 2015 10:42
anyway, the constant does nothing in Behat 3 indeed. The configuration happens in behat.yml
Marc Morera
@mmoreram
Jun 09 2015 11:03
Yes, but is not documented anywhere (At least, not found...)
Christophe Coevoet
@stof
Jun 09 2015 14:22
See https://github.com/Behat/Behat/issues/755#issuecomment-109963199 for a discussion showing it. but because of the bug about the way the reporting level is check, it will indeed not ignore them if the level is not 0