ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
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 ()
 
 getIRSSMock ()
 

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(__DIR__ . '/../../../../');
33  }

◆ test_instantiateObjectSimple()

assAnswerImagemapTest::test_instantiateObjectSimple ( )

Definition at line 35 of file assAnswerImagemapTest.php.

35  : void
36  {
37  $instance = new ASS_AnswerImagemap();
38 
39  $this->assertInstanceOf(ASS_AnswerImagemap::class, $instance);
40  }
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 53 of file assAnswerImagemapTest.php.

53  : void
54  {
55  $instance = new ASS_AnswerImagemap();
56 
57  $expected = '12345';
58  $instance->setArea($expected);
59  $actual = $instance->getArea();
60 
61  $this->assertEquals($expected, $actual);
62  }
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 42 of file assAnswerImagemapTest.php.

42  : void
43  {
44  $instance = new ASS_AnswerImagemap();
45 
46  $expected = '12345';
47  $instance->setCoords($expected);
48  $actual = $instance->getCoords();
49 
50  $this->assertEquals($expected, $actual);
51  }
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 64 of file assAnswerImagemapTest.php.

64  : void
65  {
66  $instance = new ASS_AnswerImagemap();
67 
68  $expected = '12345';
69  $instance->setPointsUnchecked($expected);
70  $actual = $instance->getPointsUnchecked();
71 
72  $this->assertEquals($expected, $actual);
73  }
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 75 of file assAnswerImagemapTest.php.

75  : void
76  {
77  $instance = new ASS_AnswerImagemap();
78 
79  $expected = 0.0;
80  $instance->setPointsUnchecked('Günther');
81  $actual = $instance->getPointsUnchecked();
82 
83  $this->assertEquals($expected, $actual);
84  }
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: