public function init_first_step(question_attempt_step $step, $variant) { $step->set_behaviour_var('_applypenalties', (int) $this->applypenalties); parent::init_first_step($step, $variant); }
public function test_get_submitted_data() { $step = new question_attempt_step(array('x' => 1, '-y' => 'frog')); $step->set_qt_var('_x', 1); $step->set_behaviour_var('_x', 2); $this->assertEquals(array('x' => 1, '-y' => 'frog'), $step->get_submitted_data()); }