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 110 of file assNumericRangeTest.php.
113 $instance->setLowerLimit(1.00);
114 $instance->setUpperLimit(10.00);
117 $actual = $instance->contains(
'Günther');
119 $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 98 of file assNumericRangeTest.php.
101 $instance->setLowerLimit(1.00);
102 $instance->setUpperLimit(10.00);
105 $actual = $instance->contains(15.00);
107 $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 86 of file assNumericRangeTest.php.
89 $instance->setLowerLimit(1.00);
90 $instance->setUpperLimit(10.00);
93 $actual = $instance->contains(5.00);
95 $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 35 of file assNumericRangeTest.php.
39 $this->assertInstanceOf(assNumericRange::class, $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 42 of file assNumericRangeTest.php.
47 $instance->setLowerLimit($expected);
48 $actual = $instance->getLowerLimit();
50 $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 64 of file assNumericRangeTest.php.
69 $instance->setOrder($expected);
70 $actual = $instance->getOrder();
72 $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 53 of file assNumericRangeTest.php.
58 $instance->setUpperLimit($expected);
59 $actual = $instance->getUpperLimit();
61 $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 75 of file assNumericRangeTest.php.
80 $instance->setPoints($expected);
81 $actual = $instance->getPoints();
83 $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: