MDL-10064 global $CFG in unit test files is non standard, it is recommended to use MOODLE_INTERNAL test in all library files

This commit is contained in:
skodak
2007-06-09 16:32:36 +00:00
parent 52f81103d3
commit cdbbd26f80
29 changed files with 93 additions and 53 deletions
+3 -4
View File
@@ -8,10 +8,9 @@
* @package SimpleTestEx
*/
/** */
require_once(dirname(__FILE__) . '/../../config.php');
global $CFG;
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
}
class slow_code_test extends UnitTestCase {
var $php_code_extensions = array('php', 'html', 'php\.inc');