MDL-56865 behat: Don't set error handler for behat install

This commit is contained in:
Rajesh Taneja 2016-11-17 08:56:54 +08:00
parent b4d6669dd0
commit 920d7ffadd
No known key found for this signature in database
GPG Key ID: B363F7FB787F80E4

View File

@ -553,8 +553,8 @@ if (!PHPUNIT_TEST or PHPUNIT_UTIL) {
}
// Acceptance tests needs special output to capture the errors,
// but not necessary for behat CLI command.
if (defined('BEHAT_SITE_RUNNING') && !defined('BEHAT_TEST')) {
// but not necessary for behat CLI command and init script.
if (defined('BEHAT_SITE_RUNNING') && !defined('BEHAT_TEST') && !defined('BEHAT_UTIL')) {
require_once(__DIR__ . '/behat/lib.php');
set_error_handler('behat_error_handler', E_ALL | E_STRICT);
}