public function testUpdateMultiple() { $update = new Update('foo'); $update->set('name', 'hello'); $update->set('title', 'world'); $update->whereEquals('id', 1); $update->limit(10); list($sql, $params) = $update->toQuery(); $this->assertEqualsSql('UPDATE foo SET name = ?, title=? WHERE id=:id LIMIT 10', $sql); $this->assertEquals(array('hello', 'world', 1), $params); }