30 protected function setUp(): void
32 chdir(dirname(__FILE__));
41 $this->assertInstanceOf(
'ASS_AnswerSimple', $instance);
50 $instance->setId($expected);
51 $actual = $instance->getId();
54 $this->assertEquals($expected, $actual);
60 $expected =
'The answer, of course, is 42.';
63 $instance->setAnswertext($expected);
64 $actual = $instance->getAnswertext();
67 $this->assertEquals($expected, $actual);
76 $instance->setPoints($expected);
77 $actual = $instance->getPoints();
80 $this->assertEquals($expected, $actual);
89 $instance->setPoints(
'Günther');
90 $actual = $instance->getPoints();
93 $this->assertEquals($expected, $actual);
102 $instance->setOrder($expected);
103 $actual = $instance->getOrder();
106 $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()