_queryString = 'dummy-querystring'; $this->_parsedQuery = 'dummy-parsed-qs'; $this->_queryParser = 'dummy-parser'; $this->_otherQuery = 'id:67'; $this->_explainData = array('a'=>'dummy1', 'b'=>'dummy2'); $this->_explain = new ArrayIterator($this->_explainData); $this->_explainOther = 'dummy-other'; $this->_timing = 'dummy-timing'; $this->_result = new Solarium_Result_Select_Debug( $this->_queryString, $this->_parsedQuery, $this->_queryParser, $this->_otherQuery, $this->_explain, $this->_explainOther, $this->_timing ); } public function testGetQueryString() { $this->assertEquals($this->_queryString, $this->_result->getQueryString()); } public function testGetParsedQuery() { $this->assertEquals($this->_parsedQuery, $this->_result->getParsedQuery()); } public function testGetQueryParser() { $this->assertEquals($this->_queryParser, $this->_result->getQueryParser()); } public function testGetOtherQuery() { $this->assertEquals($this->_otherQuery, $this->_result->getOtherQuery()); } public function testGetExplain() { $this->assertEquals($this->_explain, $this->_result->getExplain()); } public function testGetExplainOther() { $this->assertEquals($this->_explainOther, $this->_result->getExplainOther()); } public function testGetTiming() { $this->assertEquals($this->_timing, $this->_result->getTiming()); } public function testIterator() { $items = array(); foreach($this->_result AS $key => $item) { $items[$key] = $item; } $this->assertEquals($this->_explainData, $items); } public function testCount() { $this->assertEquals(count($this->_explain), count($this->_result)); } }