/** * 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_SQL::getOperators(), 'compare' => MW_Common_Criteria_Expression_Compare_SQL::getOperators(), 'sort' => MW_Common_Criteria_Expression_Sort_SQL::getOperators()); }
public function testGetOperators() { $expected = array('&&', '||', '!'); $actual = MW_Common_Criteria_Expression_Combine_SQL::getOperators(); $this->assertEquals($expected, $actual); }