Exemplo n.º 1
0
 public function testGetOperators()
 {
     $expected = array('=~', '~=', '==', '!=', '>', '>=', '<', '<=', '&', '|');
     $actual = \Aimeos\MW\Criteria\Expression\Compare\SQL::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' => \Aimeos\MW\Criteria\Expression\Combine\SQL::getOperators(), 'compare' => \Aimeos\MW\Criteria\Expression\Compare\SQL::getOperators(), 'sort' => \Aimeos\MW\Criteria\Expression\Sort\SQL::getOperators());
 }