This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
More...
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.
If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Unit tests
- Author
- Maximilian Becker mbeck.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de
Definition at line 26 of file assNumericRangeTest.php.
◆ setUp()
assNumericRangeTest::setUp |
( |
| ) |
|
|
protected |
◆ test_contains_shouldReturnFalseIfValueIsHokum()
assNumericRangeTest::test_contains_shouldReturnFalseIfValueIsHokum |
( |
| ) |
|
Definition at line 139 of file assNumericRangeTest.php.
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);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_contains_shouldReturnFalseIfValueIsNotContained()
assNumericRangeTest::test_contains_shouldReturnFalseIfValueIsNotContained |
( |
| ) |
|
Definition at line 123 of file assNumericRangeTest.php.
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);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_contains_shouldReturnTrueIfValueIsContained()
assNumericRangeTest::test_contains_shouldReturnTrueIfValueIsContained |
( |
| ) |
|
Definition at line 107 of file assNumericRangeTest.php.
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);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_instantiateObject_shouldReturnInstance()
assNumericRangeTest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
Definition at line 36 of file assNumericRangeTest.php.
39 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
44 $this->assertInstanceOf(
'assNumericRange', $instance);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_setGetLowerLimit_shouldReturnUnchangedLowerLimit()
assNumericRangeTest::test_setGetLowerLimit_shouldReturnUnchangedLowerLimit |
( |
| ) |
|
Definition at line 47 of file assNumericRangeTest.php.
50 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
55 $instance->setLowerLimit($expected);
56 $actual = $instance->getLowerLimit();
59 $this->assertEquals($expected, $actual);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_setGetOrder_shouldReturnUnchangedOrder()
assNumericRangeTest::test_setGetOrder_shouldReturnUnchangedOrder |
( |
| ) |
|
Definition at line 77 of file assNumericRangeTest.php.
80 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
85 $instance->setOrder($expected);
86 $actual = $instance->getOrder();
89 $this->assertEquals($expected, $actual);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_setGetUpperLimit_shouldReturnUnchangedUpperLimit()
assNumericRangeTest::test_setGetUpperLimit_shouldReturnUnchangedUpperLimit |
( |
| ) |
|
Definition at line 62 of file assNumericRangeTest.php.
65 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
70 $instance->setUpperLimit($expected);
71 $actual = $instance->getUpperLimit();
74 $this->assertEquals($expected, $actual);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_setPoints_shouldReturnUnchangedPoints()
assNumericRangeTest::test_setPoints_shouldReturnUnchangedPoints |
( |
| ) |
|
Definition at line 92 of file assNumericRangeTest.php.
95 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
100 $instance->setPoints($expected);
101 $actual = $instance->getPoints();
104 $this->assertEquals($expected, $actual);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ $backupGlobals
assNumericRangeTest::$backupGlobals = false |
|
protected |
The documentation for this class was generated from the following file: