Exemplo n.º 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();
 }
Exemplo n.º 2
0
 public function setUp()
 {
     self::$db = new DB($this->getPDO());
     parent::setUp();
 }