/** * Factory Update Builder * * @param string $table the table to update * @return Update */ public static function update($table = null) { $query = new Update(); if ($table) { $query->table($table); } return $query; }
public function testProvidesInterfaceForAddingOrder() { $this->object->orderBy('a')->orderBy(array('b', 'c')); $expectedParams = array('a', 'b', 'c'); $this->assertEquals($expectedParams, $this->object->getOrder()->getParams()); }