예제 #1
0
 public function testQueryGroupParsing()
 {
     $queryGroup = $this->_result->getGroup('cat:1');
     $this->assertEquals(40, $queryGroup->getMatches());
     $this->assertEquals(22, $queryGroup->getNumFound());
     $docs = $queryGroup->getDocuments();
     $this->assertEquals('dummy5', $docs[1]->name);
 }
예제 #2
0
 public function testGetGroupInvalid()
 {
     $this->assertEquals(null, $this->_grouping->getGroup('invalidkey'));
 }