mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 00:12:56 +02:00
MDL-56865 behat: Don't set error handler for behat install
This commit is contained in:
parent
b4d6669dd0
commit
920d7ffadd
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user