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.assAnswerErrorText.php';
58 $this->assertTrue(TRUE);
65 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
75 $this->assertTrue(TRUE);
82 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
87 $instance->points = $expected;
88 $actual = $instance->points;
91 $this->assertEquals($actual, $expected);
97 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
102 $instance->points = $expected;
103 $actual = $instance->points;
105 $this->assertEquals($expected, $actual);
111 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
113 $expected =
'Correct text';
116 $instance->text_correct = $expected;
117 $actual = $instance->text_correct;
120 $this->assertEquals($actual, $expected);
126 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
128 $expected =
'Errortext';
131 $instance->text_wrong = $expected;
132 $actual = $instance->text_wrong;
135 $this->assertEquals($actual, $expected);
141 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
146 $instance->text_wrong = $expected;
147 $actual = $instance->text_wrong;
150 $this->assertEquals($expected, $actual);
156 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
161 $instance->undefined123 =
'No expectations';
162 $actual = $instance->undefined123;
165 $this->assertEquals($expected, $actual);