30 protected function setUp(): void
32 chdir(dirname(__FILE__));
39 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerSimple.php';
44 $this->assertInstanceOf(
'ASS_AnswerSimple', $instance);
50 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerSimple.php';
55 $instance->setId($expected);
56 $actual = $instance->getId();
59 $this->assertEquals($expected, $actual);
65 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerSimple.php';
67 $expected =
'The answer, of course, is 42.';
70 $instance->setAnswertext($expected);
71 $actual = $instance->getAnswertext();
74 $this->assertEquals($expected, $actual);
80 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerSimple.php';
85 $instance->setPoints($expected);
86 $actual = $instance->getPoints();
89 $this->assertEquals($expected, $actual);
97 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerSimple.php';
102 $instance->setPoints(
'Günther');
103 $actual = $instance->getPoints();
106 $this->assertEquals($expected, $actual);
112 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerSimple.php';
117 $instance->setOrder($expected);
118 $actual = $instance->getOrder();
121 $this->assertEquals($expected, $actual);
test_setGetPoints_shouldReturnUnchangedZeroOnNonNumericInput()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
test_setGetPoints_shouldReturnUnchangedPoints()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
test_setGetAnswertext_shouldReturnUnchangedAnswertext()
test_setGetOrder_shouldReturnUnchangedOrder()
test_setGetId_shouldReturnUnchangedId()
test_instantiateObject_shouldReturnInstance()