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