コード例 #1
0
ファイル: UserTest.php プロジェクト: edblighter/uFlex
 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
ファイル: DBTableTest.php プロジェクト: talalalshehri/uFlex
 public function setUp()
 {
     self::$db = new DB($this->getPDO());
     parent::setUp();
 }