MDL-9866 reverting previous incorrect fix for include() in simpletest library; patching grade unit tests instead

This commit is contained in:
skodak
2007-06-09 15:03:05 +00:00
parent 09c442620d
commit 02e6a9731f
14 changed files with 1326 additions and 1283 deletions
+1 -1
View File
@@ -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(