Conditions | 1 |
Paths | 1 |
Total Lines | 11 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | public function testAdd() |
||
19 | { |
||
20 | $selected1 = 'column1'; |
||
21 | $direction1 = 'ASC'; |
||
22 | $orderBy = new OrderBy($selected1, $direction1); |
||
23 | |||
24 | $selected2 = 'column2'; |
||
25 | $direction2 = 'DESC'; |
||
26 | $orderBy->add($selected2, $direction2); |
||
27 | |||
28 | $this->assertEquals('ORDER BY column1 ASC,column2 DESC', (string)$orderBy); |
||
29 | } |
||
36 | } |