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.assAnswerMatchingPair.php';
35 $this->assertInstanceOf(
'assAnswerMatchingPair', $instance);
41 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
46 $instance->term = $expected;
47 $actual = $instance->term;
50 $this->assertEquals($expected, $actual);
56 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
58 $expected =
'Definition';
61 $instance->definition = $expected;
62 $actual = $instance->definition;
65 $this->assertEquals($expected, $actual);
71 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
73 $expected =
'Definition';
76 $instance->points = $expected;
77 $actual = $instance->points;
80 $this->assertEquals($expected, $actual);
86 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
91 $instance->hokum =
'Hokum Value';
92 $actual = $instance->hokum;
95 $this->assertEquals($expected, $actual);
Class for matching question pairs.
test_instantiateObjectSimple()