/** * * @dataProvider getOrderByStringProvider */ public function testGetOrderByString($orderBys, $expected, $expectedFormatted) { foreach ($orderBys as $orderBy) { $this->queryBuilder->orderBy($orderBy[0], $orderBy[1]); } $this->assertEquals($expected, $this->queryBuilder->getOrderByString()); $this->assertEquals($expectedFormatted, $this->queryBuilder->getOrderByString(true)); }