_parser = new Solarium_Client_ResponseParser_Select_Component_Highlighting; } public function testParse() { $highlights = array('key1' => 'dummy1', 'key2' => 'dummy2'); $data = array('highlighting' => $highlights); $expected = array( 'key1' => new Solarium_Result_Select_Highlighting_Result('dummy1'), 'key2' => new Solarium_Result_Select_Highlighting_Result('dummy2'), ); $result = $this->_parser->parse(null, null, $data); $this->assertEquals($expected, $result->getResults()); } public function testParseNoData() { $result = $this->_parser->parse(null, null, array()); $this->assertEquals(array(), $result->getResults()); } }