instance = $this->getMockForTrait('\\oat\\search\\UsableTrait\\LimitableTrait'); } /** * test sort and getSort */ public function testLimit() { $fixtureLimit = 10; $fixtureOffset = 5; $this->assertSame($this->instance, $this->instance->setOffset($fixtureOffset)); $this->assertSame($this->instance, $this->instance->setLimit($fixtureLimit)); $this->assertSame($fixtureLimit, $this->instance->getLimit()); $this->assertSame($fixtureOffset, $this->instance->getOffset()); } }