public function testBuild()
 {
     $builder = new Solarium_Client_RequestBuilder_Select_Component_Highlighting();
     $request = new Solarium_Client_Request();
     $component = new Solarium_Query_Select_Component_Highlighting();
     $component->setFields('fieldA,fieldB');
     $component->setSnippets(2);
     $component->setFragSize(3);
     $component->setMergeContiguous(true);
     $component->setRequireFieldMatch(false);
     $component->setMaxAnalyzedChars(4);
     $component->setAlternateField('fieldC');
     $component->setMaxAlternateFieldLength(5);
     $component->setFormatter('simple');
     $component->setSimplePrefix('<b>');
     $component->setSimplePostfix('</b>');
     $component->setFragmenter('myFragmenter');
     $component->setFragListBuilder('myFragListBuilder');
     $component->setFragmentsBuilder('myFragmentsBuilder');
     $component->setUsePhraseHighlighter(true);
     $component->setUseFastVectorHighlighter(false);
     $component->setHighlightMultiTerm(true);
     $component->setRegexSlop(1.3);
     $component->setRegexPattern('mypattern');
     $component->setMaxAnalyzedChars(100);
     $request = $builder->build($component, $request);
     $this->assertEquals(array('hl' => true, 'hl.fl' => 'fieldA,fieldB', 'hl.snippets' => 2, 'hl.fragsize' => 3, 'hl.mergeContiguous' => true, 'hl.requireFieldMatch' => false, 'hl.maxAnalyzedChars' => 100, 'hl.alternateField' => 'fieldC', 'hl.maxAlternateFieldLength' => 5, 'hl.formatter' => 'simple', 'hl.simple.pre' => '<b>', 'hl.simple.post' => '</b>', 'hl.fragmenter' => 'myFragmenter', 'hl.fragListBuilder' => 'myFragListBuilder', 'hl.fragmentsBuilder' => 'myFragmentsBuilder', 'hl.useFastVectorHighlighter' => false, 'hl.usePhraseHighlighter' => true, 'hl.highlightMultiTerm' => true, 'hl.regex.slop' => 1.3, 'hl.regex.pattern' => 'mypattern'), $request->getParams());
 }
 public function testSetAndGetUsePhraseHighlighter()
 {
     $value = true;
     $this->_hlt->setUsePhraseHighlighter($value);
     $this->assertEquals($value, $this->_hlt->getUsePhraseHighlighter());
 }