public function testSetLimits() { $sphinx = new SphinxClient(); $sphinx->setLimits(100, 50, 2000, 5000); $this->assertSame($sphinx->offset, 100); $this->assertSame($sphinx->limit, 50); $this->assertSame($sphinx->maxmatches, 2000); $this->assertSame($sphinx->cutoff, 5000); }
/** * {@inheritdoc} */ public function setLimits($offset, $limit, $max = 0, $cutoff = 0) { return $this->proxy->setLimits($offset, $limit, $max, $cutoff); }