Example #1
0
 public function testDelete()
 {
     $db = new Mock_Database($this, array(array('execute', "DELETE FROM table\nWHERE `column` = ?\nLIMIT 1", array('value'))));
     $q = new \Snowfire\Database\Query($db);
     $q->delete('table')->where('column', 'value')->limit(1)->execute();
     $db->finished();
 }