public function testGetOperators() { $expected = array('==', '!=', '~=', '>=', '<=', '>', '<'); $actual = MW_Common_Criteria_Expression_Compare_Lucene::getOperators(); $this->assertEquals($expected, $actual); }
/** * Returns the available compare, combine and sort operators. * * @return array Associative list of lists (compare, combine, sort) containing the available operators */ public function getOperators() { return array('combine' => MW_Common_Criteria_Expression_Combine_Lucene::getOperators(), 'compare' => MW_Common_Criteria_Expression_Compare_Lucene::getOperators(), 'sort' => MW_Common_Criteria_Expression_Sort_Lucene::getOperators()); }