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.assAnswerMatchingTerm.php';
58 $this->assertInstanceOf(
'assAnswerMatchingTerm', $instance);
64 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
69 $instance->text = $expected;
70 $actual = $instance->text;
73 $this->assertEquals($expected, $actual);
79 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
81 $expected =
'path/to/picture?';
84 $instance->picture = $expected;
85 $actual = $instance->picture;
88 $this->assertEquals($expected, $actual);
94 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
99 $actual = $instance->picture;
102 $this->assertEquals($expected, $actual);
108 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
113 $instance->identifier = $expected;
114 $actual = $instance->identifier;
117 $this->assertEquals($expected, $actual);
123 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
128 $instance->hokum =
'Hokum Value';
129 $actual = $instance->hokum;
132 $this->assertEquals($expected, $actual);