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 assAnswerSimpleTest.php.
◆ setUp()
assAnswerSimpleTest::setUp |
( |
| ) |
|
|
protected |
◆ test_instantiateObject_shouldReturnInstance()
assAnswerSimpleTest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
Definition at line 36 of file assAnswerSimpleTest.php.
39 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerSimple.php';
44 $this->assertInstanceOf(
'ASS_AnswerSimple', $instance);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_setGetAnswertext_shouldReturnUnchangedAnswertext()
assAnswerSimpleTest::test_setGetAnswertext_shouldReturnUnchangedAnswertext |
( |
| ) |
|
Definition at line 62 of file assAnswerSimpleTest.php.
65 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerSimple.php';
67 $expected =
'The answer, of course, is 42.';
70 $instance->setAnswertext($expected);
71 $actual = $instance->getAnswertext();
74 $this->assertEquals($expected, $actual);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_setGetId_shouldReturnUnchangedId()
assAnswerSimpleTest::test_setGetId_shouldReturnUnchangedId |
( |
| ) |
|
Definition at line 47 of file assAnswerSimpleTest.php.
50 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerSimple.php';
55 $instance->setId($expected);
56 $actual = $instance->getId();
59 $this->assertEquals($expected, $actual);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_setGetOrder_shouldReturnUnchangedOrder()
assAnswerSimpleTest::test_setGetOrder_shouldReturnUnchangedOrder |
( |
| ) |
|
Definition at line 109 of file assAnswerSimpleTest.php.
112 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerSimple.php';
117 $instance->setOrder($expected);
118 $actual = $instance->getOrder();
121 $this->assertEquals($expected, $actual);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_setGetPoints_shouldReturnUnchangedPoints()
assAnswerSimpleTest::test_setGetPoints_shouldReturnUnchangedPoints |
( |
| ) |
|
Definition at line 77 of file assAnswerSimpleTest.php.
80 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerSimple.php';
85 $instance->setPoints($expected);
86 $actual = $instance->getPoints();
89 $this->assertEquals($expected, $actual);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_setGetPoints_shouldReturnUnchangedZeroOnNonNumericInput()
assAnswerSimpleTest::test_setGetPoints_shouldReturnUnchangedZeroOnNonNumericInput |
( |
| ) |
|
Definition at line 92 of file assAnswerSimpleTest.php.
97 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerSimple.php';
102 $instance->setPoints(
'Günther');
103 $actual = $instance->getPoints();
106 $this->assertEquals($expected, $actual);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ $backupGlobals
assAnswerSimpleTest::$backupGlobals = false |
|
protected |
The documentation for this class was generated from the following file: