Unit tests.
More...
◆ setUp()
assAnswerImagemapTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 of file assAnswerImagemapTest.php.
References defined.
17 if (
defined(
'ILIAS_PHPUNIT_CONTEXT')) {
18 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
19 ilUnitUtil::performInitialisation();
21 chdir(dirname(__FILE__));
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
◆ test_instantiateObjectSimple()
assAnswerImagemapTest::test_instantiateObjectSimple |
( |
| ) |
|
Definition at line 26 of file assAnswerImagemapTest.php.
29 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerImagemap.php';
35 $this->assertInstanceOf(
'ASS_AnswerImagemap', $instance);
Class for true/false or yes/no answers.
◆ test_setGetArea()
assAnswerImagemapTest::test_setGetArea |
( |
| ) |
|
Definition at line 53 of file assAnswerImagemapTest.php.
56 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerImagemap.php';
61 $instance->setArea($expected);
62 $actual = $instance->getArea();
65 $this->assertEquals($expected, $actual);
Class for true/false or yes/no answers.
◆ test_setGetCoords()
assAnswerImagemapTest::test_setGetCoords |
( |
| ) |
|
Definition at line 38 of file assAnswerImagemapTest.php.
41 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerImagemap.php';
46 $instance->setCoords($expected);
47 $actual = $instance->getCoords();
50 $this->assertEquals($expected, $actual);
Class for true/false or yes/no answers.
◆ test_setGetPointsUnchecked()
assAnswerImagemapTest::test_setGetPointsUnchecked |
( |
| ) |
|
Definition at line 68 of file assAnswerImagemapTest.php.
71 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerImagemap.php';
76 $instance->setPointsUnchecked($expected);
77 $actual = $instance->getPointsUnchecked();
80 $this->assertEquals($expected, $actual);
Class for true/false or yes/no answers.
◆ test_setGetPointsUnchecked_shouldNullifyOnNonNumericPoints()
assAnswerImagemapTest::test_setGetPointsUnchecked_shouldNullifyOnNonNumericPoints |
( |
| ) |
|
Definition at line 83 of file assAnswerImagemapTest.php.
86 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerImagemap.php';
91 $instance->setPointsUnchecked(
'Günther');
92 $actual = $instance->getPointsUnchecked();
95 $this->assertEquals($expected, $actual);
Class for true/false or yes/no answers.
◆ $backupGlobals
assAnswerImagemapTest::$backupGlobals = false |
|
protected |
The documentation for this class was generated from the following file: