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