30 protected function setUp(): void
32 chdir(__DIR__ .
'/../../../../');
39 $this->assertInstanceOf(ASS_AnswerBinaryState::class, $instance);
47 $instance->setState($expected);
48 $actual = $instance->getState();
50 $this->assertEquals($expected, $actual);
58 $instance->setState($expected);
59 $actual = $instance->isStateChecked();
61 $this->assertEquals($expected, $actual);
69 $instance->setState($expected);
70 $actual = $instance->isStateSet();
72 $this->assertEquals($expected, $actual);
80 $instance->setState($expected);
81 $actual = !$instance->isStateUnset();
83 $this->assertEquals($expected, $actual);
91 $instance->setState($expected);
92 $actual = !$instance->isStateUnchecked();
94 $this->assertEquals($expected, $actual);
101 $instance->setState($expected);
103 $instance->setChecked();
104 $actual = $instance->isStateUnchecked();
106 $this->assertEquals($expected, $actual);
113 $instance->setState($expected);
115 $instance->setUnchecked();
116 $actual = $instance->isStateUnchecked();
118 $this->assertEquals($expected, $actual);
125 $instance->setState($expected);
128 $actual = $instance->isStateUnchecked();
130 $this->assertEquals($expected, $actual);
137 $instance->setState($expected);
139 $instance->setUnset();
140 $actual = $instance->isStateUnchecked();
142 $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...