Exemple #1
0
    protected function tearDown() {
        global $DB,$CFG,$SESSION,$USER;
        $DB = $this->realdb;
        $CFG = $this->realcfg;
        $SESSION = $this->realsession;
        $USER = $this->prevuser;

        parent::tearDown();
    }
 /**
  * Cleans things up after this test case has run.
  */
 protected function tearDown()
 {
     global $SESSION;
     parent::tearDown();
     if ($this->initiallang !== null) {
         $SESSION->lang = $this->initiallang;
         $this->initiallang = null;
     } else {
         unset($SESSION->lang);
     }
 }
Exemple #3
0
 protected function tearDown() {
     $this->testpage = null;
     $this->blockmanager = null;
     parent::tearDown();
 }
Exemple #4
0
 protected function tearDown()
 {
     $this->workshop = null;
     $this->evaluator = null;
     parent::tearDown();
 }
 /**
  * Clears the data set in the setUp() method call.
  * @see dateselector_form_element_testcase::setUp()
  */
 protected function tearDown()
 {
     unset($this->testvals);
     parent::tearDown();
 }