Doctrine\MongoDB\Tests\Query\BuilderTest::testSelectSliceWithSkipAndLimit PHP Method

testSelectSliceWithSkipAndLimit() public method

    public function testSelectSliceWithSkipAndLimit()
    {
        $qb = $this->getTestQueryBuilder()->selectSlice('tags', -5, 5);
        $expected = ['tags' => ['$slice' => [-5, 5]]];
        $this->assertEquals($expected, $qb->debug('select'));
    }
BuilderTest