30 protected function setUp(): void
32 chdir(dirname(__FILE__));
39 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
45 $this->assertInstanceOf(assAnswerErrorText::class, $instance);
52 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
63 $this->assertInstanceOf(assAnswerErrorText::class, $instance);
76 $this->assertInstanceOf(assAnswerErrorText::class, $instance);
77 $this->assertEquals(
'errortext', $instance->getTextWrong());
78 $this->assertEquals(
'correcttext', $instance->getTextCorrect());
79 $this->assertEquals(0.01, $instance->getPoints());
80 $this->assertEquals(21, $instance->getPosition());
81 $this->assertEquals(1, $instance->getLength());
88 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
93 $instance_with_points = $instance->withPoints($expected);
94 $actual = $instance_with_points->getPoints();
97 $this->assertEquals($actual, $expected);
104 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
109 $instance_with_position = $instance->withPosition($expected);
110 $actual = $instance_with_position->getPosition();
113 $this->assertEquals($actual, $expected);
test_instantiateObjectSimple()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
test_withPosition_valid()
test_instantiateObjectFullHasCorrectValues()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
test_instantiateObjectFull()