I have a Symfony 2.7 form type that causes some E_USER_DEPRECATED level E_USER_DEPRECATED . These errors do not come from my own code, but from vendor/symfony/symfony/src/Symfony/Bridge/Doctrine/Form/Type/DoctrineType.php .
In dev mode, using a web browser, I can access the page using the specified form. WDT shows me some DEPRECATED messages, but the form works, the page returns with a status of 200.
Using Behat 3 (with Behat\Symfony2Extension\Driver\KernelDriver and Behat\Mink\Driver\BrowserKitDriver ), a request to the same URL returns a 500 status server error. The stack trace in the response indicates that DEPRECATED errors raise an exception.
My Behat configuration is as simple as described at http://docs.behat.org/en/v3.0/cookbooks/1.symfony2_integration.html
When I do define('BEHAT_ERROR_REPORTING', 0); on top of my FeatureContext.php file, as suggested by https://stackoverflow.com/a/3/3/3/3/3/3/16/ , no behavior changes.
After some code scanning, I assume that the BEHAT_ERROR_REPORTING constant is removed in Behat 3, and RuntimeCallHandler::errorReportingLevel used RuntimeCallHandler::errorReportingLevel .
However, I do not know how to configure or install RuntimeCallHandler::errorReportingLevel .
source share