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 assAnswerTrueFalseTest.php.
◆ setUp()
assAnswerTrueFalseTest::setUp |
( |
| ) |
|
|
protected |
◆ test_instantiateObject_shouldReturnInstance()
assAnswerTrueFalseTest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
Definition at line 36 of file assAnswerTrueFalseTest.php.
39 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerTrueFalse.php';
44 $this->assertInstanceOf(
'ASS_AnswerTrueFalse', $instance);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_isFalse_shouldReturnFalseOnTrueState()
assAnswerTrueFalseTest::test_isFalse_shouldReturnFalseOnTrueState |
( |
| ) |
|
Definition at line 77 of file assAnswerTrueFalseTest.php.
80 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerTrueFalse.php';
85 $instance->setCorrectness(
true);
88 $this->assertEquals($expected, $instance->isFalse());
89 $this->assertEquals($expected, $instance->isIncorrect());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_isTrue_shouldReturnTrue()
assAnswerTrueFalseTest::test_isTrue_shouldReturnTrue |
( |
| ) |
|
Definition at line 62 of file assAnswerTrueFalseTest.php.
65 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerTrueFalse.php';
70 $instance->setCorrectness($expected);
73 $this->assertEquals($expected, $instance->isTrue());
74 $this->assertEquals($expected, $instance->isCorrect());
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_setFalseGetCorrectness_shouldReturnFalse()
assAnswerTrueFalseTest::test_setFalseGetCorrectness_shouldReturnFalse |
( |
| ) |
|
Definition at line 92 of file assAnswerTrueFalseTest.php.
95 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerTrueFalse.php';
100 $instance->setFalse();
101 $actual = $instance->getCorrectness();
104 $this->assertEquals((
bool) $expected, (
bool) $actual);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_setFalseIsFalse_shouldReturnUnchangedState()
assAnswerTrueFalseTest::test_setFalseIsFalse_shouldReturnUnchangedState |
( |
| ) |
|
Definition at line 122 of file assAnswerTrueFalseTest.php.
125 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerTrueFalse.php';
130 $instance->setFalse();
131 $actual = $instance->isFalse();
134 $this->assertEquals($expected, $actual);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_setGetCorrectness_shouldReturnUnchangedState()
assAnswerTrueFalseTest::test_setGetCorrectness_shouldReturnUnchangedState |
( |
| ) |
|
Definition at line 47 of file assAnswerTrueFalseTest.php.
50 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerTrueFalse.php';
55 $instance->setCorrectness($expected);
56 $actual = $instance->getCorrectness();
59 $this->assertEquals($expected, $actual);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_setTrueIsTrue_shouldReturnUnchangedState()
assAnswerTrueFalseTest::test_setTrueIsTrue_shouldReturnUnchangedState |
( |
| ) |
|
Definition at line 107 of file assAnswerTrueFalseTest.php.
110 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerTrueFalse.php';
115 $instance->setTrue();
116 $actual = $instance->isTrue();
119 $this->assertEquals($expected, $actual);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ $backupGlobals
assAnswerTrueFalseTest::$backupGlobals = false |
|
protected |
The documentation for this class was generated from the following file: