17 if (defined(
'ILIAS_PHPUNIT_CONTEXT'))
19 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
20 ilUnitUtil::performInitialisation();
24 chdir( dirname( __FILE__ ) );
32 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
38 $this->assertNotNull($instance);
44 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
49 $instance->setLowerBound($expected);
50 $actual = $instance->getLowerBound();
53 $this->assertEquals($expected, $actual);
59 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
64 $instance->setLowerBound(4);
65 $actual = $instance->getLowerBound();
68 $this->assertEquals($expected, $actual);
74 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
79 $instance->setLowerBound(
'test');
80 $actual = $instance->getLowerBound();
83 $this->assertEquals($expected, $actual);
89 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
94 $instance->setUpperBound($expected);
95 $actual = $instance->getUpperBound();
98 $this->assertEquals($expected, $actual);
104 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
109 $instance->setUpperBound(2);
110 $actual = $instance->getUpperBound();
113 $this->assertEquals($expected, $actual);
119 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerCloze.php';
124 $instance->setUpperBound(
'test');
125 $actual = $instance->getUpperBound();
128 $this->assertEquals($expected, $actual);