30 protected function setUp(): void
32 chdir(__DIR__ .
'/../../../../');
39 $this->assertInstanceOf(ASS_AnswerTrueFalse::class, $instance);
47 $instance->setCorrectness($expected);
48 $actual = $instance->getCorrectness();
50 $this->assertEquals($expected, $actual);
58 $instance->setCorrectness($expected);
60 $this->assertEquals($expected, $instance->isTrue());
61 $this->assertEquals($expected, $instance->isCorrect());
69 $instance->setCorrectness(
true);
71 $this->assertEquals($expected, $instance->isFalse());
72 $this->assertEquals($expected, $instance->isIncorrect());
80 $instance->setFalse();
81 $actual = $instance->getCorrectness();
83 $this->assertEquals((
bool) $expected, (
bool) $actual);
92 $actual = $instance->isTrue();
94 $this->assertEquals($expected, $actual);
102 $instance->setFalse();
103 $actual = $instance->isFalse();
105 $this->assertEquals($expected, $actual);
test_setFalseIsFalse_shouldReturnUnchangedState()
test_setGetCorrectness_shouldReturnUnchangedState()
test_isTrue_shouldReturnTrue()
test_isFalse_shouldReturnFalseOnTrueState()
test_setTrueIsTrue_shouldReturnUnchangedState()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
test_setFalseGetCorrectness_shouldReturnFalse()
test_instantiateObject_shouldReturnInstance()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...