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.assAnswerMatchingTerm.php';
38 $this->assertInstanceOf(
'assAnswerMatchingTerm', $instance);
44 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
49 $instance->text = $expected;
50 $actual = $instance->text;
53 $this->assertEquals($expected, $actual);
59 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
61 $expected =
'path/to/picture?';
64 $instance->picture = $expected;
65 $actual = $instance->picture;
68 $this->assertEquals($expected, $actual);
74 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
79 $actual = $instance->picture;
82 $this->assertEquals($expected, $actual);
88 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
93 $instance->identifier = $expected;
94 $actual = $instance->identifier;
97 $this->assertEquals($expected, $actual);
103 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
108 $instance->hokum =
'Hokum Value';
109 $actual = $instance->hokum;
112 $this->assertEquals($expected, $actual);