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 assAnswerBinaryStateTest.php.
◆ setUp()
assAnswerBinaryStateTest::setUp |
( |
| ) |
|
|
protected |
◆ test_instantiateObject_shouldReturnInstance()
assAnswerBinaryStateTest::test_instantiateObject_shouldReturnInstance |
( |
| ) |
|
Definition at line 36 of file assAnswerBinaryStateTest.php.
39 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
44 $this->assertInstanceOf(
'ASS_AnswerBinaryState', $instance);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_isStateChecked_shouldReturnActualState()
assAnswerBinaryStateTest::test_isStateChecked_shouldReturnActualState |
( |
| ) |
|
Definition at line 62 of file assAnswerBinaryStateTest.php.
65 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
70 $instance->setState($expected);
71 $actual = $instance->isStateChecked();
74 $this->assertEquals($expected, $actual);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_isStateSet_shouldReturnActualState()
assAnswerBinaryStateTest::test_isStateSet_shouldReturnActualState |
( |
| ) |
|
Definition at line 77 of file assAnswerBinaryStateTest.php.
80 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
85 $instance->setState($expected);
86 $actual = $instance->isStateSet();
89 $this->assertEquals($expected, $actual);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_isStateUnchecked_shouldReturnActualState()
assAnswerBinaryStateTest::test_isStateUnchecked_shouldReturnActualState |
( |
| ) |
|
Definition at line 107 of file assAnswerBinaryStateTest.php.
110 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
115 $instance->setState($expected);
116 $actual = !$instance->isStateUnchecked();
119 $this->assertEquals($expected, $actual);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_isStateUnset_shouldReturnActualState()
assAnswerBinaryStateTest::test_isStateUnset_shouldReturnActualState |
( |
| ) |
|
Definition at line 92 of file assAnswerBinaryStateTest.php.
95 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
100 $instance->setState($expected);
101 $actual = !$instance->isStateUnset();
104 $this->assertEquals($expected, $actual);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_setChecked_shouldAlterState()
assAnswerBinaryStateTest::test_setChecked_shouldAlterState |
( |
| ) |
|
Definition at line 122 of file assAnswerBinaryStateTest.php.
125 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
128 $instance->setState($expected);
131 $instance->setChecked();
132 $actual = $instance->isStateUnchecked();
135 $this->assertEquals($expected, $actual);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_setGetState_shouldReturnUnchangedState()
assAnswerBinaryStateTest::test_setGetState_shouldReturnUnchangedState |
( |
| ) |
|
Definition at line 47 of file assAnswerBinaryStateTest.php.
50 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
55 $instance->setState($expected);
56 $actual = $instance->getState();
59 $this->assertEquals($expected, $actual);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_setSet_shouldAlterState()
assAnswerBinaryStateTest::test_setSet_shouldAlterState |
( |
| ) |
|
Definition at line 154 of file assAnswerBinaryStateTest.php.
157 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
160 $instance->setState($expected);
164 $actual = $instance->isStateUnchecked();
167 $this->assertEquals($expected, $actual);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_setUnchecked_shouldAlterState()
assAnswerBinaryStateTest::test_setUnchecked_shouldAlterState |
( |
| ) |
|
Definition at line 138 of file assAnswerBinaryStateTest.php.
141 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
144 $instance->setState($expected);
147 $instance->setUnchecked();
148 $actual = $instance->isStateUnchecked();
151 $this->assertEquals($expected, $actual);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ test_setUnset_shouldAlterState()
assAnswerBinaryStateTest::test_setUnset_shouldAlterState |
( |
| ) |
|
Definition at line 170 of file assAnswerBinaryStateTest.php.
173 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
176 $instance->setState($expected);
179 $instance->setUnset();
180 $actual = $instance->isStateUnchecked();
183 $this->assertEquals($expected, $actual);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
◆ $backupGlobals
assAnswerBinaryStateTest::$backupGlobals = false |
|
protected |
The documentation for this class was generated from the following file: