Unit tests.
More...
Unit tests.
- Author
- Maximilian Becker mbeck.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de
Definition at line 11 of file assAnswerClozeTest.php.
◆ setUp()
assAnswerClozeTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 of file assAnswerClozeTest.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_constructorShouldReturnInstance()
assAnswerClozeTest::test_constructorShouldReturnInstance |
( |
| ) |
|
Definition at line 29 of file assAnswerClozeTest.php.
32 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
38 $this->assertNotNull($instance);
Class for cloze question numeric answers.
◆ test_setGetLowerBond_GreaterThanAnswerShouldSetAnswertext()
assAnswerClozeTest::test_setGetLowerBond_GreaterThanAnswerShouldSetAnswertext |
( |
| ) |
|
Definition at line 56 of file assAnswerClozeTest.php.
59 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
64 $instance->setLowerBound(4);
65 $actual = $instance->getLowerBound();
68 $this->assertEquals($expected, $actual);
Class for cloze question numeric answers.
◆ test_setGetLowerBound()
assAnswerClozeTest::test_setGetLowerBound |
( |
| ) |
|
Definition at line 41 of file assAnswerClozeTest.php.
44 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
49 $instance->setLowerBound($expected);
50 $actual = $instance->getLowerBound();
53 $this->assertEquals($expected, $actual);
Class for cloze question numeric answers.
◆ test_setGetLowerBound_nonNumericShouldSetAnswertext()
assAnswerClozeTest::test_setGetLowerBound_nonNumericShouldSetAnswertext |
( |
| ) |
|
Definition at line 71 of file assAnswerClozeTest.php.
74 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
79 $instance->setLowerBound(
'test');
80 $actual = $instance->getLowerBound();
83 $this->assertEquals($expected, $actual);
Class for cloze question numeric answers.
◆ test_setGetUpperBound()
assAnswerClozeTest::test_setGetUpperBound |
( |
| ) |
|
Definition at line 86 of file assAnswerClozeTest.php.
89 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
94 $instance->setUpperBound($expected);
95 $actual = $instance->getUpperBound();
98 $this->assertEquals($expected, $actual);
Class for cloze question numeric answers.
◆ test_setGetUpperBound_nonNumericShouldSetAnswertext()
assAnswerClozeTest::test_setGetUpperBound_nonNumericShouldSetAnswertext |
( |
| ) |
|
Definition at line 116 of file assAnswerClozeTest.php.
119 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
124 $instance->setUpperBound(
'test');
125 $actual = $instance->getUpperBound();
128 $this->assertEquals($expected, $actual);
Class for cloze question numeric answers.
◆ test_setGetUpperBound_smallerThanAnswerShouldSetAnswertext()
assAnswerClozeTest::test_setGetUpperBound_smallerThanAnswerShouldSetAnswertext |
( |
| ) |
|
Definition at line 101 of file assAnswerClozeTest.php.
104 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
109 $instance->setUpperBound(2);
110 $actual = $instance->getUpperBound();
113 $this->assertEquals($expected, $actual);
Class for cloze question numeric answers.
◆ $backupGlobals
assAnswerClozeTest::$backupGlobals = FALSE |
|
protected |
The documentation for this class was generated from the following file: