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.assAnswerImagemap.php';
38 $this->assertInstanceOf(
'ASS_AnswerImagemap', $instance);
44 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerImagemap.php';
49 $instance->setCoords($expected);
50 $actual = $instance->getCoords();
53 $this->assertEquals($expected, $actual);
59 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerImagemap.php';
64 $instance->setArea($expected);
65 $actual = $instance->getArea();
68 $this->assertEquals($expected, $actual);
74 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerImagemap.php';
79 $instance->setPointsUnchecked($expected);
80 $actual = $instance->getPointsUnchecked();
83 $this->assertEquals($expected, $actual);
89 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerImagemap.php';
94 $instance->setPointsUnchecked(
'Günther');
95 $actual = $instance->getPointsUnchecked();
98 $this->assertEquals($expected, $actual);