Example #1
0
 public function testPExecuteQuery()
 {
     $rs = $this->db->PExecute('SELECT * From Country WHERE Continent = ?', 'Africa');
     $this->assertTrue($rs);
     $this->assertEquals($this->db->getnumOfRows(), 58);
     $this->assertEquals($this->db->getnumOfRowsAffected(), 58);
     $this->assertFalse($this->db->PExecute('SELECT * From Country WHERE Continent = ?', 'naranjas'));
 }