MDL-9866 reverting previous incorrect fix for include() in simpletest library; patching grade unit tests instead
This commit is contained in:
@@ -458,7 +458,7 @@
|
||||
*/
|
||||
function _requireWithError($file) {
|
||||
$this->_enableErrorReporting();
|
||||
include_once($file); // moodle change - include prevents inheritance of test classes MDL-9866
|
||||
include($file);
|
||||
$error = isset($php_errormsg) ? $php_errormsg : false;
|
||||
$this->_disableErrorReporting();
|
||||
$self_inflicted_errors = array(
|
||||
|
||||
Reference in New Issue
Block a user