Example #1
0
 /**
  * Construct a new App_test object
  *
  * @param String $uri an optional relative URI (e.g. "/folder/file")
  */
 public function __construct($uri = NULL)
 {
     $this->is_testing = TRUE;
     parent::__construct($uri);
     if (Config::get('TESTING_ENABLED') !== TRUE) {
         parent::redirect('', array('exit' => TRUE));
     }
     $this->reset_folder();
     $this->test_run = NULL;
     // Translations need validating
     Translate::validate();
 }