/** * If first argument is array, then second argument should not be used. * * @expectedException Exception */ public function testException1() { $m = new Model(); $m->addFields(['name', 'salary']); $m->setOrder(['name', 'salary'], 'desc'); }