| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 14 | public function testLimit(): void |
||
| 15 | { |
||
| 16 | $this->insertDocument(1); |
||
| 17 | $this->insertDocument(2); |
||
| 18 | $this->insertDocument(3); |
||
| 19 | $this->insertDocument(4); |
||
| 20 | $this->insertDocument(5); |
||
| 21 | |||
| 22 | /** @var Cursor $cursor */ |
||
| 23 | $cursor = $this->r() |
||
| 24 | ->table('tabletest') |
||
| 25 | ->limit(2) |
||
| 26 | ->run(); |
||
| 27 | |||
| 28 | $this->assertCount(2, $cursor); |
||
| 29 | } |
||
| 53 |