public function testException2() { $types = array('test' => 'array', 'test()' => MW_DB_Statement_Abstract::PARAM_STR); $translations = array('test()' => 'testfunc($1,$2)'); $object = new MW_Common_Criteria_Expression_Sort_PHP('+', 'wrongType'); $this->setExpectedException('MW_Common_Exception'); $object->toString($types, $translations); }
/** * 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()); }