_values = array( 'a' => 12, 'b' => 5, 'c' => 3, ); $this->_facet = new Solarium_Result_Select_Facet_Field($this->_values); } public function testGetValues() { $this->assertEquals($this->_values, $this->_facet->getValues()); } public function testCount() { $this->assertEquals(count($this->_values), count($this->_facet)); } public function testIterator() { $values = array(); foreach($this->_facet AS $key => $value) { $values[$key] = $value; } $this->assertEquals($this->_values, $values); } }