ILIAS  release_9 Revision v9.13-25-g2c18ec4c24f
assAnswerImagemapTest Class Reference

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V. More...

+ Inheritance diagram for assAnswerImagemapTest:
+ Collaboration diagram for assAnswerImagemapTest:

Public Member Functions

 test_instantiateObjectSimple ()
 
 test_setGetCoords ()
 
 test_setGetArea ()
 
 test_setGetPointsUnchecked ()
 
 test_setGetPointsUnchecked_shouldNullifyOnNonNumericPoints ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from assBaseTestCase
 setUp ()
 
 tearDown ()
 
 setGlobalVariable (string $name, $value)
 
 getGlobalTemplateMock ()
 
 getDatabaseMock ()
 
 getIRSSMock ()
 
 getFileDeliveryMock ()
 
 getIliasMock ()
 
 addGlobal_uiFactory ()
 
 addGlobal_uiRenderer ()
 

Protected Attributes

 $backupGlobals = false
 
- Protected Attributes inherited from assBaseTestCase
Container $dic = null
 

Detailed Description

This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.

ILIAS is licensed with the GPL-3.0, see https://www.gnu.org/licenses/gpl-3.0.en.html You should have received a copy of said license along with the source code, too.

If this is not the case or you just want to try ILIAS, you'll find us at: https://www.ilias.de https://github.com/ILIAS-eLearning Unit tests

Author
Maximilian Becker mbeck.nosp@m.er@d.nosp@m.ataba.nosp@m.y.de

Definition at line 26 of file assAnswerImagemapTest.php.

Member Function Documentation

◆ setUp()

assAnswerImagemapTest::setUp ( )
protected

Definition at line 30 of file assAnswerImagemapTest.php.

30  : void
31  {
32  chdir(dirname(__FILE__));
33  chdir('../../../');
34  }

◆ test_instantiateObjectSimple()

assAnswerImagemapTest::test_instantiateObjectSimple ( )

Definition at line 36 of file assAnswerImagemapTest.php.

36  : void
37  {
38  // Act
39  $instance = new ASS_AnswerImagemap();
40 
41  // Assert
42  $this->assertInstanceOf('ASS_AnswerImagemap', $instance);
43  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ test_setGetArea()

assAnswerImagemapTest::test_setGetArea ( )

Definition at line 58 of file assAnswerImagemapTest.php.

58  : void
59  {
60  $instance = new ASS_AnswerImagemap();
61 
62  // Act
63  $expected = "12345";
64  $instance->setArea($expected);
65  $actual = $instance->getArea();
66 
67  // Assert
68  $this->assertEquals($expected, $actual);
69  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ test_setGetCoords()

assAnswerImagemapTest::test_setGetCoords ( )

Definition at line 45 of file assAnswerImagemapTest.php.

45  : void
46  {
47  $instance = new ASS_AnswerImagemap();
48 
49  // Act
50  $expected = "12345";
51  $instance->setCoords($expected);
52  $actual = $instance->getCoords();
53 
54  // Assert
55  $this->assertEquals($expected, $actual);
56  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ test_setGetPointsUnchecked()

assAnswerImagemapTest::test_setGetPointsUnchecked ( )

Definition at line 71 of file assAnswerImagemapTest.php.

71  : void
72  {
73  $instance = new ASS_AnswerImagemap();
74 
75  // Act
76  $expected = "12345";
77  $instance->setPointsUnchecked($expected);
78  $actual = $instance->getPointsUnchecked();
79 
80  // Assert
81  $this->assertEquals($expected, $actual);
82  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ test_setGetPointsUnchecked_shouldNullifyOnNonNumericPoints()

assAnswerImagemapTest::test_setGetPointsUnchecked_shouldNullifyOnNonNumericPoints ( )

Definition at line 84 of file assAnswerImagemapTest.php.

84  : void
85  {
86  $instance = new ASS_AnswerImagemap();
87 
88  // Act
89  $expected = 0.0;
90  $instance->setPointsUnchecked('Günther');
91  $actual = $instance->getPointsUnchecked();
92 
93  // Assert
94  $this->assertEquals($expected, $actual);
95  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

Field Documentation

◆ $backupGlobals

assAnswerImagemapTest::$backupGlobals = false
protected

Definition at line 28 of file assAnswerImagemapTest.php.


The documentation for this class was generated from the following file: