Unit tests.
More...
◆ setUp()
assNumericRangeTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 of file assNumericRangeTest.php.
References defined.
17 if (
defined(
'ILIAS_PHPUNIT_CONTEXT'))
19 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
20 ilUnitUtil::performInitialisation();
24 chdir( dirname( __FILE__ ) );
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
◆ test_contains_shouldReturnFalseIfValueIsHokum()
assNumericRangeTest::test_contains_shouldReturnFalseIfValueIsHokum |
( |
| ) |
|
Definition at line 132 of file assNumericRangeTest.php.
135 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
137 $instance->setLowerLimit(1.00);
138 $instance->setUpperLimit(10.00);
142 $actual = $instance->contains(
'Günther');
145 $this->assertEquals($expected, $actual);
Class for numeric ranges of questions.
◆ test_contains_shouldReturnFalseIfValueIsNotContained()
assNumericRangeTest::test_contains_shouldReturnFalseIfValueIsNotContained |
( |
| ) |
|
Definition at line 116 of file assNumericRangeTest.php.
119 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
121 $instance->setLowerLimit(1.00);
122 $instance->setUpperLimit(10.00);
126 $actual = $instance->contains(15.00);
129 $this->assertEquals($expected, $actual);
Class for numeric ranges of questions.
◆ test_contains_shouldReturnTrueIfValueIsContained()
assNumericRangeTest::test_contains_shouldReturnTrueIfValueIsContained |
( |
| ) |
|
Definition at line 100 of file assNumericRangeTest.php.
103 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
105 $instance->setLowerLimit(1.00);
106 $instance->setUpperLimit(10.00);
110 $actual = $instance->contains(5.00);
113 $this->assertEquals($expected, $actual);
Class for numeric ranges of questions.
◆ test_instantiateObject_shouldReturnInstance()
assNumericRangeTest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
Definition at line 29 of file assNumericRangeTest.php.
32 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
37 $this->assertInstanceOf(
'assNumericRange', $instance);
Class for numeric ranges of questions.
◆ test_setGetLowerLimit_shouldReturnUnchangedLowerLimit()
assNumericRangeTest::test_setGetLowerLimit_shouldReturnUnchangedLowerLimit |
( |
| ) |
|
Definition at line 40 of file assNumericRangeTest.php.
43 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
48 $instance->setLowerLimit($expected);
49 $actual = $instance->getLowerLimit();
52 $this->assertEquals($expected, $actual);
Class for numeric ranges of questions.
◆ test_setGetOrder_shouldReturnUnchangedOrder()
assNumericRangeTest::test_setGetOrder_shouldReturnUnchangedOrder |
( |
| ) |
|
Definition at line 70 of file assNumericRangeTest.php.
73 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
78 $instance->setOrder($expected);
79 $actual = $instance->getOrder();
82 $this->assertEquals($expected, $actual);
Class for numeric ranges of questions.
◆ test_setGetUpperLimit_shouldReturnUnchangedUpperLimit()
assNumericRangeTest::test_setGetUpperLimit_shouldReturnUnchangedUpperLimit |
( |
| ) |
|
Definition at line 55 of file assNumericRangeTest.php.
58 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
63 $instance->setUpperLimit($expected);
64 $actual = $instance->getUpperLimit();
67 $this->assertEquals($expected, $actual);
Class for numeric ranges of questions.
◆ test_setPoints_shouldReturnUnchangedPoints()
assNumericRangeTest::test_setPoints_shouldReturnUnchangedPoints |
( |
| ) |
|
Definition at line 85 of file assNumericRangeTest.php.
88 require_once
'./Modules/TestQuestionPool/classes/class.assNumericRange.php';
93 $instance->setPoints($expected);
94 $actual = $instance->getPoints();
97 $this->assertEquals($expected, $actual);
Class for numeric ranges of questions.
◆ $backupGlobals
assNumericRangeTest::$backupGlobals = FALSE |
|
protected |
The documentation for this class was generated from the following file: