37 if (defined(
'ILIAS_PHPUNIT_CONTEXT'))
39 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
40 ilUnitUtil::performInitialisation();
44 chdir( dirname( __FILE__ ) );
52 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
58 $this->assertNotNull($instance);
64 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
69 $instance->setLowerBound($expected);
70 $actual = $instance->getLowerBound();
73 $this->assertEquals($expected, $actual);
79 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
84 $instance->setLowerBound(4);
85 $actual = $instance->getLowerBound();
88 $this->assertEquals($expected, $actual);
94 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
99 $instance->setLowerBound(
'test');
100 $actual = $instance->getLowerBound();
103 $this->assertEquals($expected, $actual);
109 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
114 $instance->setUpperBound($expected);
115 $actual = $instance->getUpperBound();
118 $this->assertEquals($expected, $actual);
124 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
129 $instance->setUpperBound(2);
130 $actual = $instance->getUpperBound();
133 $this->assertEquals($expected, $actual);
139 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
144 $instance->setUpperBound(
'test');
145 $actual = $instance->getUpperBound();
148 $this->assertEquals($expected, $actual);