30 protected function setUp(): void
32 chdir(__DIR__ .
'/../../../../');
39 $this->assertInstanceOf(assAnswerCloze::class, $instance);
47 $instance->setLowerBound($expected);
48 $actual = $instance->getLowerBound();
50 $this->assertEquals($expected, $actual);
58 $instance->setLowerBound(4);
59 $actual = $instance->getLowerBound();
61 $this->assertEquals($expected, $actual);
69 $instance->setLowerBound(
'test');
70 $actual = $instance->getLowerBound();
72 $this->assertEquals($expected, $actual);
80 $instance->setUpperBound($expected);
81 $actual = $instance->getUpperBound();
83 $this->assertEquals($expected, $actual);
91 $instance->setUpperBound(2);
92 $actual = $instance->getUpperBound();
94 $this->assertEquals($expected, $actual);
102 $instance->setUpperBound(
'test');
103 $actual = $instance->getUpperBound();
105 $this->assertEquals($expected, $actual);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
test_setGetUpperBound_nonNumericShouldSetAnswertext()
test_constructorShouldReturnInstance()
test_setGetLowerBound_nonNumericShouldSetAnswertext()
test_setGetUpperBound_smallerThanAnswerShouldSetAnswertext()
test_setGetLowerBond_GreaterThanAnswerShouldSetAnswertext()
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...