public static function setUpBeforeClass() { static::get_csv_files(); static::get_logfilelocation_files(); static::get_zip_files(); parent::setUpBeforeClass(); }
/** * Require elis_program classes that we reset custom fields for in setUp. */ public static function setUpBeforeClass() { global $CFG; parent::setUpBeforeClass(); // We require these classes here so they're defined when we reset custom fields in setUp. // For some reason, requiring these in setUp doesn't not actually define them.. phpunit weirdness? if (file_exists(dirname(__FILE__) . '/../../../../local/elisprogram')) { require_once dirname(__FILE__) . '/../../../../local/elisprogram/lib/setup.php'; require_once elispm::lib('data/curriculum.class.php'); require_once elispm::lib('data/track.class.php'); require_once elispm::lib('data/course.class.php'); require_once elispm::lib('data/pmclass.class.php'); require_once elispm::lib('data/user.class.php'); require_once elispm::lib('data/userset.class.php'); } }