public function setMaxWordLength($maxWordLength) { return $this->setParam('max_word_length', (int) $maxWordLength); }
/** * @group unit */ public function testSetMaxWordLength() { $query = new MoreLikeThis(); $length = 5; $query->setMaxWordLength($length); $this->assertEquals($length, $query->getParam('max_word_length')); }