public function test_deferredfeedback_feedback_turmultiplechoice_multi()
 {
     // Create a turmultiplechoice, multi question.
     $mc = test_turmultiplechoice_question_maker::make_a_turmultiplechoice_multi_question();
     $mc->shuffleanswers = false;
     $this->start_attempt_at_question($mc, 'deferredfeedback', 2);
     $this->process_submission($mc->get_correct_response());
     $this->quba->finish_all_questions();
     // Verify.
     $this->check_current_state(question_state::$gradedright);
     $this->check_current_mark(2);
     $this->check_current_output($this->get_contains_mc_checkbox_expectation('choice0', false, true), $this->get_contains_mc_checkbox_expectation('choice1', false, false), $this->get_contains_mc_checkbox_expectation('choice2', false, true), $this->get_contains_mc_checkbox_expectation('choice3', false, false), $this->get_contains_correct_expectation(), new PatternExpectation('/class="r0 correct"/'), new PatternExpectation('/class="r1"/'));
 }
 public function test_classify_response()
 {
     $mc = test_turmultiplechoice_question_maker::make_a_turmultiplechoice_multi_question();
     $mc->shuffleanswers = false;
     $mc->start_attempt(new question_attempt_step(), 1);
     $this->assertEqual(array(13 => new question_classified_response(13, 'A', 0.5), 14 => new question_classified_response(14, 'B', -1.0)), $mc->classify_response(array('choice0' => 1, 'choice1' => 1)));
     $this->assertEqual(array(), $mc->classify_response(array()));
 }