ILIAS  trunk Revision v5.2.0beta1-34115-g3a2438be29
assAnswerMatchingTest 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 assAnswerMatchingTest:
+ Collaboration diagram for assAnswerMatchingTest:

Public Member Functions

 test_instantiateObjectSimple ()
 
 test_setGetPoints ()
 
 test_setGetTermId ()
 
 test_setGetPicture ()
 
 test_setGetPictureId ()
 
 test_setGetPictureId_NegativeShouldNotSetValue ()
 
 test_setGetDefinition ()
 
 test_setGetDefinitionId ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from assBaseTestCase
 setUp ()
 
 tearDown ()
 
 getIRSSMock ()
 
 getFileDeliveryMock ()
 

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 assAnswerMatchingTest.php.

Member Function Documentation

◆ setUp()

assAnswerMatchingTest::setUp ( )
protected

Definition at line 30 of file assAnswerMatchingTest.php.

30  : void
31  {
32  chdir(__DIR__ . '/../../../../');
33  }

◆ test_instantiateObjectSimple()

assAnswerMatchingTest::test_instantiateObjectSimple ( )

Definition at line 35 of file assAnswerMatchingTest.php.

35  : void
36  {
37  $instance = new ASS_AnswerMatching();
38 
39  $this->assertInstanceOf(ASS_AnswerMatching::class, $instance);
40  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ test_setGetDefinition()

assAnswerMatchingTest::test_setGetDefinition ( )

Definition at line 97 of file assAnswerMatchingTest.php.

97  : void
98  {
99  $instance = new ASS_AnswerMatching();
100  $expected = 'Definition is this.';
101 
102  $instance->setDefinition($expected);
103  $actual = $instance->getDefinition();
104 
105  $this->assertEquals($expected, $actual);
106  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ test_setGetDefinitionId()

assAnswerMatchingTest::test_setGetDefinitionId ( )

Definition at line 108 of file assAnswerMatchingTest.php.

108  : void
109  {
110  $instance = new ASS_AnswerMatching();
111  $expected = 10;
112 
113  $instance->setDefinitionId($expected);
114  $actual = $instance->getDefinitionId();
115 
116  $this->assertEquals($expected, $actual);
117  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ test_setGetPicture()

assAnswerMatchingTest::test_setGetPicture ( )

Definition at line 64 of file assAnswerMatchingTest.php.

64  : void
65  {
66  $instance = new ASS_AnswerMatching();
67  $expected = '/link/to/image?';
68 
69  $instance->setPicture($expected);
70  $actual = $instance->getPicture();
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_setGetPictureId()

assAnswerMatchingTest::test_setGetPictureId ( )

Definition at line 75 of file assAnswerMatchingTest.php.

75  : void
76  {
77  $instance = new ASS_AnswerMatching();
78  $expected = 47;
79 
80  $instance->setPictureId($expected);
81  $actual = $instance->getPictureId();
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...

◆ test_setGetPictureId_NegativeShouldNotSetValue()

assAnswerMatchingTest::test_setGetPictureId_NegativeShouldNotSetValue ( )

Definition at line 86 of file assAnswerMatchingTest.php.

86  : void
87  {
88  $instance = new ASS_AnswerMatching();
89  $expected = 0;
90 
91  $instance->setPictureId(-47);
92  $actual = $instance->getPictureId();
93 
94  $this->assertEquals($expected, $actual);
95  }
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...

◆ test_setGetPoints()

assAnswerMatchingTest::test_setGetPoints ( )

Definition at line 42 of file assAnswerMatchingTest.php.

42  : void
43  {
44  $instance = new ASS_AnswerMatching();
45  $expected = 10;
46 
47  $instance->setPoints($expected);
48  $actual = $instance->getPoints();
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_setGetTermId()

assAnswerMatchingTest::test_setGetTermId ( )

Definition at line 53 of file assAnswerMatchingTest.php.

53  : void
54  {
55  $instance = new ASS_AnswerMatching();
56  $expected = 10;
57 
58  $instance->setTermId($expected);
59  $actual = $instance->getTermId();
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...

Field Documentation

◆ $backupGlobals

assAnswerMatchingTest::$backupGlobals = false
protected

Definition at line 28 of file assAnswerMatchingTest.php.


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