SkipTest::testSkip()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 10

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
eloc 10
dl 0
loc 15
c 0
b 0
f 0
rs 9.9332
cc 1
nc 1
nop 0
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