Exemple #1
0
 public function testFillByObject()
 {
     $query = new InsertQuery('tbl1', (object) array('col1' => 'col1Value', 'col2' => 'col2Value', 'col3' => 1));
     $this->assertSame('INSERT INTO `tbl1` (`col1`,`col2`,`col3`) VALUES (?,?,?)', $query->getQuery());
     $this->assertSame('ssi', $query->getMarker());
     $this->assertSame(array('col1Value', 'col2Value', 1), $query->getParameters());
 }