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')) {
18 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
19 ilUnitUtil::performInitialisation();
21 chdir(dirname(__FILE__));
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
◆ test_constructorShouldReturnInstance()
assAnswerClozeTest::test_constructorShouldReturnInstance |
( |
| ) |
|
Definition at line 26 of file assAnswerClozeTest.php.
29 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
35 $this->assertNotNull($instance);
Class for cloze question numeric answers.
◆ test_setGetLowerBond_GreaterThanAnswerShouldSetAnswertext()
assAnswerClozeTest::test_setGetLowerBond_GreaterThanAnswerShouldSetAnswertext |
( |
| ) |
|
Definition at line 53 of file assAnswerClozeTest.php.
56 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
61 $instance->setLowerBound(4);
62 $actual = $instance->getLowerBound();
65 $this->assertEquals($expected, $actual);
Class for cloze question numeric answers.
◆ test_setGetLowerBound()
assAnswerClozeTest::test_setGetLowerBound |
( |
| ) |
|
Definition at line 38 of file assAnswerClozeTest.php.
41 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
46 $instance->setLowerBound($expected);
47 $actual = $instance->getLowerBound();
50 $this->assertEquals($expected, $actual);
Class for cloze question numeric answers.
◆ test_setGetLowerBound_nonNumericShouldSetAnswertext()
assAnswerClozeTest::test_setGetLowerBound_nonNumericShouldSetAnswertext |
( |
| ) |
|
Definition at line 68 of file assAnswerClozeTest.php.
71 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
76 $instance->setLowerBound(
'test');
77 $actual = $instance->getLowerBound();
80 $this->assertEquals($expected, $actual);
Class for cloze question numeric answers.
◆ test_setGetUpperBound()
assAnswerClozeTest::test_setGetUpperBound |
( |
| ) |
|
Definition at line 83 of file assAnswerClozeTest.php.
86 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
91 $instance->setUpperBound($expected);
92 $actual = $instance->getUpperBound();
95 $this->assertEquals($expected, $actual);
Class for cloze question numeric answers.
◆ test_setGetUpperBound_nonNumericShouldSetAnswertext()
assAnswerClozeTest::test_setGetUpperBound_nonNumericShouldSetAnswertext |
( |
| ) |
|
Definition at line 113 of file assAnswerClozeTest.php.
116 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
121 $instance->setUpperBound(
'test');
122 $actual = $instance->getUpperBound();
125 $this->assertEquals($expected, $actual);
Class for cloze question numeric answers.
◆ test_setGetUpperBound_smallerThanAnswerShouldSetAnswertext()
assAnswerClozeTest::test_setGetUpperBound_smallerThanAnswerShouldSetAnswertext |
( |
| ) |
|
Definition at line 98 of file assAnswerClozeTest.php.
101 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
106 $instance->setUpperBound(2);
107 $actual = $instance->getUpperBound();
110 $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: