Пример #1
0
 public static function setUpBeforeClass()
 {
     static::get_csv_files();
     static::get_logfilelocation_files();
     static::get_zip_files();
     parent::setUpBeforeClass();
 }
Пример #2
0
 /**
  * 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');
     }
 }