public function testPGetAssoc() { $rs = $this->db->PGetAssoc('SELECT Name, CountryCode From City WHERE District=? AND Population < ?', 'Florida', 100000); $this->assertEquals(3, count($rs)); $this->assertEquals(array('Clearwater' => 'USA', 'Miami Beach' => 'USA', 'Gainesville' => 'USA'), $rs); }