Conditions | 1 |
Paths | 1 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
35 | public function testLimitOffsetWithExpression(): void |
||
36 | { |
||
37 | $query = (new Query($this->getConnection()))->from('customer')->select('id')->orderBy('id'); |
||
38 | |||
39 | $query |
||
40 | ->limit(new Expression('1 + 1')) |
||
41 | ->offset(new Expression('1 + 0')); |
||
42 | |||
43 | $result = $query->column(); |
||
44 | |||
45 | $this->assertCount(2, $result); |
||
46 | $this->assertContains("2", $result); |
||
47 | $this->assertContains("3", $result); |
||
48 | $this->assertNotContains("1", $result); |
||
49 | } |
||
51 |