30 protected function setUp(): void
32 chdir(dirname(__FILE__));
39 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
44 $this->assertInstanceOf(
'ASS_AnswerBinaryState', $instance);
50 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
55 $instance->setState($expected);
56 $actual = $instance->getState();
59 $this->assertEquals($expected, $actual);
65 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
70 $instance->setState($expected);
71 $actual = $instance->isStateChecked();
74 $this->assertEquals($expected, $actual);
80 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
85 $instance->setState($expected);
86 $actual = $instance->isStateSet();
89 $this->assertEquals($expected, $actual);
95 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
100 $instance->setState($expected);
101 $actual = !$instance->isStateUnset();
104 $this->assertEquals($expected, $actual);
110 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
115 $instance->setState($expected);
116 $actual = !$instance->isStateUnchecked();
119 $this->assertEquals($expected, $actual);
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);
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);
157 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerBinaryState.php';
160 $instance->setState($expected);
164 $actual = $instance->isStateUnchecked();
167 $this->assertEquals($expected, $actual);
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);
test_instantiateObject_shouldReturnInstance()
test_setGetState_shouldReturnUnchangedState()
test_setChecked_shouldAlterState()
test_setUnchecked_shouldAlterState()
test_isStateUnchecked_shouldReturnActualState()
test_isStateSet_shouldReturnActualState()
test_isStateUnset_shouldReturnActualState()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
test_setSet_shouldAlterState()
test_isStateChecked_shouldReturnActualState()
test_setUnset_shouldAlterState()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...