Unit tests.
More...
◆ setUp()
assAnswerMultipleResponseTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 of file assAnswerMultipleResponseTest.php.
References defined.
17 if (
defined(
'ILIAS_PHPUNIT_CONTEXT'))
19 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
20 ilUnitUtil::performInitialisation();
24 chdir( dirname( __FILE__ ) );
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
◆ test_instantiateObjectSimple()
assAnswerMultipleResponseTest::test_instantiateObjectSimple |
( |
| ) |
|
Definition at line 29 of file assAnswerMultipleResponseTest.php.
32 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMultipleResponse.php';
38 $this->assertInstanceOf(
'ASS_AnswerMultipleResponse', $instance);
Class for true/false or yes/no answers.
◆ test_setGetPointsChecked()
assAnswerMultipleResponseTest::test_setGetPointsChecked |
( |
| ) |
|
Definition at line 71 of file assAnswerMultipleResponseTest.php.
74 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMultipleResponse.php';
79 $instance->setPointsChecked($expected);
80 $actual = $instance->getPointsChecked();
83 $this->assertEquals($expected, $actual);
Class for true/false or yes/no answers.
◆ test_setGetPointsUnchecked()
assAnswerMultipleResponseTest::test_setGetPointsUnchecked |
( |
| ) |
|
Definition at line 41 of file assAnswerMultipleResponseTest.php.
44 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMultipleResponse.php';
49 $instance->setPointsUnchecked($expected);
50 $actual = $instance->getPointsUnchecked();
53 $this->assertEquals($expected, $actual);
Class for true/false or yes/no answers.
◆ test_setGetPointsUnchecked_InvalidPointsBecomeZero()
assAnswerMultipleResponseTest::test_setGetPointsUnchecked_InvalidPointsBecomeZero |
( |
| ) |
|
Definition at line 56 of file assAnswerMultipleResponseTest.php.
59 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMultipleResponse.php';
64 $instance->setPointsUnchecked(
'Günther');
65 $actual = $instance->getPointsUnchecked();
68 $this->assertEquals($expected, $actual);
Class for true/false or yes/no answers.
◆ $backupGlobals
assAnswerMultipleResponseTest::$backupGlobals = FALSE |
|
protected |
The documentation for this class was generated from the following file: