Ejemplo n.º 1
0
 /**
  * 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;
 }
Ejemplo n.º 2
0
 public function testProvidesInterfaceForAddingOrder()
 {
     $this->object->orderBy('a')->orderBy(array('b', 'c'));
     $expectedParams = array('a', 'b', 'c');
     $this->assertEquals($expectedParams, $this->object->getOrder()->getParams());
 }