function testGetCol() { $this->dbo->execute('DELETE FROM q_posts'); $idList = $this->_insertIntoPosts(10); $sql = "SELECT post_id FROM q_posts ORDER BY post_id ASC"; $rowset = $this->dbo->getCol($sql); for ($i = 0; $i < 10; $i++) { $this->assertEquals($idList[$i], $rowset[$i]); } }