Inheritance: extends PHPUnit_Framework_TestCase
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     // Run migration once
     if (!self::$migrate) {
         $CI =& get_instance();
         $CI->load->database();
         $CI->load->library('migration');
         $CI->migration->current();
     }
 }
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     // Run migrations once
     if (!self::$migrate) {
         $CI =& get_instance();
         $CI->load->database();
         $CI->load->library('migration');
         if ($CI->migration->current() === false) {
             throw new RuntimeException($CI->migration->error_string());
         }
         self::$migrate = true;
     }
 }