Alcaeus\MongoDbAdapter\Tests\Mongo\MongoCollectionTest::testCountWithLimitAndSkip PHP Method

testCountWithLimitAndSkip() public method

    public function testCountWithLimitAndSkip()
    {
        $this->prepareData();
        $collection = $this->getCollection();
        $this->assertSame(2, $collection->count([], ['skip' => 1, 'limit' => 2]));
        $this->assertSame(1, $collection->count([], ['skip' => 1, 'limit' => 1]));
    }
MongoCollectionTest