This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Learning e.V.
More...
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.
◆ setUp()
assAnswerMatchingTest::setUp |
( |
| ) |
|
|
protected |
◆ test_instantiateObjectSimple()
assAnswerMatchingTest::test_instantiateObjectSimple |
( |
| ) |
|
Definition at line 36 of file assAnswerMatchingTest.php.
39 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatching.php';
45 $this->assertInstanceOf(
'ASS_AnswerMatching', $instance);
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 123 of file assAnswerMatchingTest.php.
126 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatching.php';
128 $expected =
'Definition is this.';
131 $instance->setDefinition($expected);
132 $actual = $instance->getDefinition();
135 $this->assertEquals($expected, $actual);
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 138 of file assAnswerMatchingTest.php.
141 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatching.php';
146 $instance->setDefinitionId($expected);
147 $actual = $instance->getDefinitionId();
150 $this->assertEquals($expected, $actual);
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 78 of file assAnswerMatchingTest.php.
81 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatching.php';
83 $expected =
'/link/to/image?';
86 $instance->setPicture($expected);
87 $actual = $instance->getPicture();
90 $this->assertEquals($expected, $actual);
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 93 of file assAnswerMatchingTest.php.
96 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatching.php';
101 $instance->setPictureId($expected);
102 $actual = $instance->getPictureId();
105 $this->assertEquals($expected, $actual);
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 108 of file assAnswerMatchingTest.php.
111 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatching.php';
116 $instance->setPictureId(-47);
117 $actual = $instance->getPictureId();
120 $this->assertEquals($expected, $actual);
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 48 of file assAnswerMatchingTest.php.
51 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatching.php';
56 $instance->setPoints($expected);
57 $actual = $instance->getPoints();
60 $this->assertEquals($expected, $actual);
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 63 of file assAnswerMatchingTest.php.
66 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatching.php';
71 $instance->setTermId($expected);
72 $actual = $instance->getTermId();
75 $this->assertEquals($expected, $actual);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ $backupGlobals
assAnswerMatchingTest::$backupGlobals = false |
|
protected |
The documentation for this class was generated from the following file: