_values = array( '10.0' => 12, '20.0' => 5, '30.0' => 3, ); $this->_before = 2; $this->_after = 4; $this->_between = 3; $this->_facet = new Solarium_Result_Select_Facet_Range($this->_values, $this->_before, $this->_after, $this->_between); } 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); } public function testGetBefore() { $this->assertEquals($this->_before, $this->_facet->getBefore()); } public function testGetAfter() { $this->assertEquals($this->_after, $this->_facet->getAfter()); } public function testGetBetween() { $this->assertEquals($this->_between, $this->_facet->getBetween()); } }