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.assAnswerErrorText.php';
38 $this->assertTrue(TRUE);
45 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
55 $this->assertTrue(TRUE);
62 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
67 $instance->points = $expected;
68 $actual = $instance->points;
71 $this->assertEquals($actual, $expected);
77 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
82 $instance->points = $expected;
83 $actual = $instance->points;
85 $this->assertEquals($expected, $actual);
91 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
93 $expected =
'Correct text';
96 $instance->text_correct = $expected;
97 $actual = $instance->text_correct;
100 $this->assertEquals($actual, $expected);
106 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
108 $expected =
'Errortext';
111 $instance->text_wrong = $expected;
112 $actual = $instance->text_wrong;
115 $this->assertEquals($actual, $expected);
121 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
126 $instance->text_wrong = $expected;
127 $actual = $instance->text_wrong;
130 $this->assertEquals($expected, $actual);
136 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
141 $instance->undefined123 =
'No expectations';
142 $actual = $instance->undefined123;
145 $this->assertEquals($expected, $actual);