Total Complexity | 2 |
Total Lines | 41 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
10 | class LimitTest extends AbstractTableTest |
||
11 | { |
||
12 | /** |
||
13 | * @return void |
||
14 | * @throws \Exception |
||
15 | */ |
||
16 | public function testLimit(): void |
||
17 | { |
||
18 | $this->insertDocument(1); |
||
19 | $this->insertDocument(2); |
||
20 | $this->insertDocument(3); |
||
21 | $this->insertDocument(4); |
||
22 | $this->insertDocument(5); |
||
23 | |||
24 | /** @var Cursor $cursor */ |
||
25 | $cursor = $this->r() |
||
26 | ->table('tabletest') |
||
27 | ->limit(2) |
||
28 | ->run(); |
||
29 | |||
30 | $this->assertCount(2, $cursor); |
||
31 | } |
||
32 | |||
33 | public function testLimitWithMultipleTransformations(): void |
||
51 | } |
||
52 | } |
||
53 |