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); }