30 protected function setUp(): void
32 chdir(__DIR__ .
'/../../../../');
39 $this->assertInstanceOf(assAnswerErrorText::class, $instance);
52 $this->assertInstanceOf(assAnswerErrorText::class, $instance);
64 $this->assertInstanceOf(assAnswerErrorText::class, $instance);
65 $this->assertEquals(
'errortext', $instance->getTextWrong());
66 $this->assertEquals(
'correcttext', $instance->getTextCorrect());
67 $this->assertEquals(0.01, $instance->getPoints());
68 $this->assertEquals(21, $instance->getPosition());
69 $this->assertEquals(1, $instance->getLength());
77 $instance_with_points = $instance->withPoints($expected);
78 $actual = $instance_with_points->getPoints();
80 $this->assertEquals($actual, $expected);
88 $instance_with_position = $instance->withPosition($expected);
89 $actual = $instance_with_position->getPosition();
91 $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()