Proyectos de Subversion Moodle

Rev

Rev 11 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 11 Rev 1441
Línea 34... Línea 34...
34
 * @package   qtype_multichoice
34
 * @package   qtype_multichoice
35
 * @copyright 2009 The Open University
35
 * @copyright 2009 The Open University
36
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
36
 * @license   http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
37
 * @covers    \qtype_multichoice
37
 * @covers    \qtype_multichoice
38
 */
38
 */
39
class question_type_test extends \advanced_testcase {
39
final class question_type_test extends \advanced_testcase {
40
    protected $qtype;
40
    protected $qtype;
Línea 41... Línea 41...
41
 
41
 
-
 
42
    protected function setUp(): void {
42
    protected function setUp(): void {
43
        parent::setUp();
43
        $this->qtype = new qtype_multichoice();
44
        $this->qtype = new qtype_multichoice();
Línea 44... Línea 45...
44
    }
45
    }
45
 
46
 
-
 
47
    protected function tearDown(): void {
46
    protected function tearDown(): void {
48
        $this->qtype = null;
Línea 47... Línea 49...
47
        $this->qtype = null;
49
        parent::tearDown();
48
    }
50
    }
49
 
51
 
Línea 105... Línea 107...
105
            1 => array(1 => new question_possible_response('frog', 1)),
107
            1 => array(1 => new question_possible_response('frog', 1)),
106
            2 => array(2 => new question_possible_response('toad', 0)),
108
            2 => array(2 => new question_possible_response('toad', 0)),
107
        ), $this->qtype->get_possible_responses($q));
109
        ), $this->qtype->get_possible_responses($q));
108
    }
110
    }
Línea 109... Línea 111...
109
 
111
 
110
    public function get_question_saving_which() {
112
    public static function get_question_saving_which(): array {
111
        return array(array('two_of_four'), array('one_of_four'));
113
        return array(array('two_of_four'), array('one_of_four'));
Línea 112... Línea 114...
112
    }
114
    }
113
 
115