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

        parent::tearDown();
    }
Exemplo n.º 2
0
 /**
  * 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);
     }
 }
Exemplo n.º 3
0
 protected function tearDown() {
     $this->testpage = null;
     $this->blockmanager = null;
     parent::tearDown();
 }
Exemplo n.º 4
0
 protected function tearDown()
 {
     $this->workshop = null;
     $this->evaluator = null;
     parent::tearDown();
 }
Exemplo n.º 5
0
 /**
  * Clears the data set in the setUp() method call.
  * @see dateselector_form_element_testcase::setUp()
  */
 protected function tearDown()
 {
     unset($this->testvals);
     parent::tearDown();
 }