_corrections = array( 'key1' => 'content1', 'key2' => 'content2', ); $this->_hits = 1; $this->_query = 'dummy query'; $this->_result = new Solarium_Result_Select_Spellcheck_Collation($this->_query, $this->_hits, $this->_corrections); } public function testGetQuery() { $this->assertEquals($this->_query, $this->_result->getQuery()); } public function testGetHits() { $this->assertEquals($this->_hits, $this->_result->getHits()); } public function testGetCorrections() { $this->assertEquals($this->_corrections, $this->_result->getCorrections()); } public function testIterator() { $items = array(); foreach($this->_result AS $key => $item) { $items[$key] = $item; } $this->assertEquals($this->_corrections, $items); } public function testCount() { $this->assertEquals(count($this->_corrections), count($this->_result)); } }