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 35 of file assAnswerBinaryStateTest.php.
39 $this->assertInstanceOf(ASS_AnswerBinaryState::class, $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 53 of file assAnswerBinaryStateTest.php.
58 $instance->setState($expected);
59 $actual = $instance->isStateChecked();
61 $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 64 of file assAnswerBinaryStateTest.php.
69 $instance->setState($expected);
70 $actual = $instance->isStateSet();
72 $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 86 of file assAnswerBinaryStateTest.php.
91 $instance->setState($expected);
92 $actual = !$instance->isStateUnchecked();
94 $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 75 of file assAnswerBinaryStateTest.php.
80 $instance->setState($expected);
81 $actual = !$instance->isStateUnset();
83 $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 97 of file assAnswerBinaryStateTest.php.
101 $instance->setState($expected);
103 $instance->setChecked();
104 $actual = $instance->isStateUnchecked();
106 $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 42 of file assAnswerBinaryStateTest.php.
47 $instance->setState($expected);
48 $actual = $instance->getState();
50 $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 121 of file assAnswerBinaryStateTest.php.
125 $instance->setState($expected);
128 $actual = $instance->isStateUnchecked();
130 $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 109 of file assAnswerBinaryStateTest.php.
113 $instance->setState($expected);
115 $instance->setUnchecked();
116 $actual = $instance->isStateUnchecked();
118 $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 133 of file assAnswerBinaryStateTest.php.
137 $instance->setState($expected);
139 $instance->setUnset();
140 $actual = $instance->isStateUnchecked();
142 $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: