- $this->conn = new \pq\Connection(PQ_DSN);
- $this->conn->exec(PQ_TEST_DROP_TABLE);
- $this->conn->exec(PQ_TEST_CREATE_TABLE);
- $this->conn->exec(PQ_TEST_CREATE_DATA);
- $this->table = new Table(PQ_TEST_TABLE_NAME, $this->conn);
+ $this->conn = new \pq\Connection(PQ_TEST_DSN);
+ $this->conn->exec(PQ_TEST_TABLE_CREATE);
+ $this->conn->exec(PQ_TEST_REFTABLE_CREATE);
+ $this->conn->exec(PQ_TEST_DATA);
+ Table::$defaultConnection = $this->conn;
+ $this->table = new Table("test");