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