SkipTest   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 11
dl 0
loc 21
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A testSkip() 0 15 1
1
<?php
2
declare(strict_types = 1);
3
4
namespace TBolier\RethinkQL\IntegrationTest\Transformation;
5
6
use TBolier\RethinkQL\IntegrationTest\Operation\AbstractTableTest;
7
use TBolier\RethinkQL\Response\Cursor;
8
use TBolier\RethinkQL\Response\ResponseInterface;
9
10
class SkipTest extends AbstractTableTest
11
{
12
    /**
13
     * @return void
14
     * @throws \Exception
15
     */
16
    public function testSkip(): 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
            ->skip(2)
28
            ->run();
29
30
        $this->assertCount(3, $cursor);
31
    }
32
}
33