| Conditions | 1 | 
| Paths | 1 | 
| Total Lines | 16 | 
| Code Lines | 11 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 36 | public function testFilterAndLimit(): void | ||
| 37 |     { | ||
| 38 | $this->insertDocument(1); | ||
| 39 | $this->insertDocument(2); | ||
| 40 | $this->insertDocument(3); | ||
| 41 | $this->insertDocument(4); | ||
| 42 | $this->insertDocument(5); | ||
| 43 | |||
| 44 | /** @var Cursor $cursor */ | ||
| 45 | $cursor = $this->r() | ||
| 46 |                        ->table('tabletest') | ||
| 47 | ->filter(['description' => 'A document description.']) | ||
| 48 | ->limit(2) | ||
| 49 | ->run(); | ||
| 50 | |||
| 51 | $this->assertCount(2, $cursor); | ||
| 52 | } | ||
| 54 |