예제 #1
0
 public function setUp()
 {
     // Instantiate the global session variable
     $_SESSION = array();
     // Instantiate the global cookie variable
     $_COOKIE = array();
     $this->user = new User();
     $this->user->config->database->pdo = $this->getPDO();
     $this->user->start();
     parent::setUp();
 }
예제 #2
0
 public function setUp()
 {
     self::$db = new DB($this->getPDO());
     parent::setUp();
 }