30 protected function setUp(): void
32 chdir(dirname(__FILE__));
39 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
44 $this->assertInstanceOf(
'assNumericRange', $instance);
50 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
55 $instance->setLowerLimit($expected);
56 $actual = $instance->getLowerLimit();
59 $this->assertEquals($expected, $actual);
65 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
70 $instance->setUpperLimit($expected);
71 $actual = $instance->getUpperLimit();
74 $this->assertEquals($expected, $actual);
80 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
85 $instance->setOrder($expected);
86 $actual = $instance->getOrder();
89 $this->assertEquals($expected, $actual);
95 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
100 $instance->setPoints($expected);
101 $actual = $instance->getPoints();
104 $this->assertEquals($expected, $actual);
110 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
112 $instance->setLowerLimit(1.00);
113 $instance->setUpperLimit(10.00);
117 $actual = $instance->contains(5.00);
120 $this->assertEquals($expected, $actual);
126 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
128 $instance->setLowerLimit(1.00);
129 $instance->setUpperLimit(10.00);
133 $actual = $instance->contains(15.00);
136 $this->assertEquals($expected, $actual);
142 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
144 $instance->setLowerLimit(1.00);
145 $instance->setUpperLimit(10.00);
149 $actual = $instance->contains(
'Günther');
152 $this->assertEquals($expected, $actual);
test_setGetOrder_shouldReturnUnchangedOrder()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
test_contains_shouldReturnFalseIfValueIsHokum()
test_contains_shouldReturnTrueIfValueIsContained()
test_setGetLowerLimit_shouldReturnUnchangedLowerLimit()
test_contains_shouldReturnFalseIfValueIsNotContained()
test_setPoints_shouldReturnUnchangedPoints()
test_instantiateObject_shouldReturnInstance()
test_setGetUpperLimit_shouldReturnUnchangedUpperLimit()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...