17 if (
defined(
'ILIAS_PHPUNIT_CONTEXT')) {
18 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
19 ilUnitUtil::performInitialisation();
21 chdir(dirname(__FILE__));
29 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
35 $this->assertInstanceOf(
'assAnswerMatchingTerm', $instance);
41 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
46 $instance->text = $expected;
47 $actual = $instance->text;
50 $this->assertEquals($expected, $actual);
56 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
58 $expected =
'path/to/picture?';
61 $instance->picture = $expected;
62 $actual = $instance->picture;
65 $this->assertEquals($expected, $actual);
71 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
76 $actual = $instance->picture;
79 $this->assertEquals($expected, $actual);
85 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
90 $instance->identifier = $expected;
91 $actual = $instance->identifier;
94 $this->assertEquals($expected, $actual);
100 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
105 $instance->hokum =
'Hokum Value';
106 $actual = $instance->hokum;
109 $this->assertEquals($expected, $actual);
Class for matching question terms.
test_instantiateObjectSimple()
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'