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.assAnswerSimple.php';
37 $this->assertInstanceOf(
'ASS_AnswerSimple', $instance);
43 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerSimple.php';
48 $instance->setId($expected);
49 $actual = $instance->getId();
52 $this->assertEquals($expected, $actual);
58 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerSimple.php';
60 $expected =
'The answer, of course, is 42.';
63 $instance->setAnswertext($expected);
64 $actual = $instance->getAnswertext();
67 $this->assertEquals($expected, $actual);
73 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerSimple.php';
78 $instance->setPoints($expected);
79 $actual = $instance->getPoints();
82 $this->assertEquals($expected, $actual);
90 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerSimple.php';
95 $instance->setPoints(
'Günther');
96 $actual = $instance->getPoints();
99 $this->assertEquals($expected, $actual);
105 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerSimple.php';
110 $instance->setOrder($expected);
111 $actual = $instance->getOrder();
114 $this->assertEquals($expected, $actual);