Unit tests.
More...
◆ setUp()
assAnswerImagemapTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 of file assAnswerImagemapTest.php.
References defined.
17 if (
defined(
'ILIAS_PHPUNIT_CONTEXT'))
19 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
20 ilUnitUtil::performInitialisation();
24 chdir( dirname( __FILE__ ) );
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
◆ test_instantiateObjectSimple()
assAnswerImagemapTest::test_instantiateObjectSimple |
( |
| ) |
|
Definition at line 29 of file assAnswerImagemapTest.php.
32 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerImagemap.php';
38 $this->assertInstanceOf(
'ASS_AnswerImagemap', $instance);
Class for true/false or yes/no answers.
◆ test_setGetArea()
assAnswerImagemapTest::test_setGetArea |
( |
| ) |
|
Definition at line 56 of file assAnswerImagemapTest.php.
59 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerImagemap.php';
64 $instance->setArea($expected);
65 $actual = $instance->getArea();
68 $this->assertEquals($expected, $actual);
Class for true/false or yes/no answers.
◆ test_setGetCoords()
assAnswerImagemapTest::test_setGetCoords |
( |
| ) |
|
Definition at line 41 of file assAnswerImagemapTest.php.
44 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerImagemap.php';
49 $instance->setCoords($expected);
50 $actual = $instance->getCoords();
53 $this->assertEquals($expected, $actual);
Class for true/false or yes/no answers.
◆ test_setGetPointsUnchecked()
assAnswerImagemapTest::test_setGetPointsUnchecked |
( |
| ) |
|
Definition at line 71 of file assAnswerImagemapTest.php.
74 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerImagemap.php';
79 $instance->setPointsUnchecked($expected);
80 $actual = $instance->getPointsUnchecked();
83 $this->assertEquals($expected, $actual);
Class for true/false or yes/no answers.
◆ test_setGetPointsUnchecked_shouldNullifyOnNonNumericPoints()
assAnswerImagemapTest::test_setGetPointsUnchecked_shouldNullifyOnNonNumericPoints |
( |
| ) |
|
Definition at line 86 of file assAnswerImagemapTest.php.
89 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerImagemap.php';
94 $instance->setPointsUnchecked(
'Günther');
95 $actual = $instance->getPointsUnchecked();
98 $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: