30 protected function setUp(): void
32 chdir(__DIR__ .
'/../../../../');
39 $this->assertInstanceOf(ASS_AnswerSimple::class, $instance);
47 $instance->setId($expected);
48 $actual = $instance->getId();
50 $this->assertEquals($expected, $actual);
56 $expected =
'The answer, of course, is 42.';
58 $instance->setAnswertext($expected);
59 $actual = $instance->getAnswertext();
61 $this->assertEquals($expected, $actual);
69 $instance->setPoints($expected);
70 $actual = $instance->getPoints();
72 $this->assertEquals($expected, $actual);
80 $instance->setPoints(
'Günther');
81 $actual = $instance->getPoints();
83 $this->assertEquals($expected, $actual);
91 $instance->setOrder($expected);
92 $actual = $instance->getOrder();
94 $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()