Exemplo n.º 1
0
 public function setUp()
 {
     $this->db_config = $GLOBALS['UNITTEST_DB_CONFIG'];
     $handle = DBMysqlNamespace::createDBHandle2($this->db_config, "test", $this->encoding);
     assert($handle);
     $sql = 'create table if not exists tb_unittest(id int NOT NULL auto_increment,c1 int, PRIMARY KEY (id) )';
     $ret = $handle->execute($sql);
     $this->assertEquals($ret, TRUE);
     $this->handle = $handle;
 }