/** * @expectedException moodle_exception */ public function test_cannot_grade() { $q = new qtype_missingtype_question(); $q->grade_response(array()); }
public function test_cannot_grade() { $q = new qtype_missingtype_question(); $this->setExpectedException('moodle_exception'); $q->grade_response(array()); }