17 if (
defined(
'ILIAS_PHPUNIT_CONTEXT')) {
18 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
19 ilUnitUtil::performInitialisation();
21 chdir(dirname(__FILE__));
29 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMultipleResponse.php';
35 $this->assertInstanceOf(
'ASS_AnswerMultipleResponse', $instance);
41 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMultipleResponse.php';
46 $instance->setPointsUnchecked($expected);
47 $actual = $instance->getPointsUnchecked();
50 $this->assertEquals($expected, $actual);
56 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMultipleResponse.php';
61 $instance->setPointsUnchecked(
'Günther');
62 $actual = $instance->getPointsUnchecked();
65 $this->assertEquals($expected, $actual);
71 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMultipleResponse.php';
76 $instance->setPointsChecked($expected);
77 $actual = $instance->getPointsChecked();
80 $this->assertEquals($expected, $actual);
test_setGetPointsUnchecked_InvalidPointsBecomeZero()
test_setGetPointsUnchecked()
test_instantiateObjectSimple()
Class for true/false or yes/no answers.
test_setGetPointsChecked()
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'