/**
  * Setup global $DB as reference to a mocked one.
  */
 function setUp()
 {
     global $testDB_conf;
     parent::setup();
     $classname = 'EvoMockDbUnitTestCase_DB_' . get_class($this);
     $this->MockDB = new $classname($this);
     $this->MockDB->DB($testDB_conf);
     // this will do 2-3 calls to query() already
     $this->old_DB_EvoMockDbUnitTestCase =& $GLOBALS['DB'];
     $GLOBALS['DB'] =& $this->MockDB;
 }
 /**
  * Remember current GLOBAL scope.
  */
 function setUp()
 {
     parent::setup();
     $this->used_globals = array_keys($GLOBALS);
 }