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

testCountWithLimitLegacy() public method

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