_query = new TestAnalysisQuery; } public function testSetAndGetQuery() { $querystring = 'test query values'; $this->_query->setQuery($querystring); $this->assertEquals($querystring, $this->_query->getQuery()); } public function testSetAndGetQueryWithBind() { $this->_query->setQuery('id:%1%', array(678)); $this->assertEquals('id:678', $this->_query->getQuery()); } public function testSetAndGetShowMatch() { $show = true; $this->_query->setShowMatch($show); $this->assertEquals($show, $this->_query->getShowMatch()); } } class TestAnalysisQuery extends Solarium_Query_Analysis{ public function getType() { } }