Exemplo n.º 1
0
 public function testGetOperators()
 {
     $expected = array('+', '-');
     $actual = MW_Common_Criteria_Expression_Sort_PHP::getOperators();
     $this->assertEquals($expected, $actual);
 }
Exemplo n.º 2
0
 /**
  * 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_PHP::getOperators(), 'compare' => MW_Common_Criteria_Expression_Compare_PHP::getOperators(), 'sort' => MW_Common_Criteria_Expression_Sort_PHP::getOperators());
 }