Unit tests for assAnswerErrorTextTest.
More...
◆ setUp()
assAnswerErrorTextTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 of file assAnswerErrorTextTest.php.
References defined.
17 if (
defined(
'ILIAS_PHPUNIT_CONTEXT')) {
18 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
19 ilUnitUtil::performInitialisation();
21 chdir(dirname(__FILE__));
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
◆ test_instantiateObjectFull()
assAnswerErrorTextTest::test_instantiateObjectFull |
( |
| ) |
|
Definition at line 39 of file assAnswerErrorTextTest.php.
42 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
52 $this->assertTrue(
true);
Class for error text answers.
◆ test_instantiateObjectSimple()
assAnswerErrorTextTest::test_instantiateObjectSimple |
( |
| ) |
|
Definition at line 26 of file assAnswerErrorTextTest.php.
29 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
35 $this->assertTrue(
true);
Class for error text answers.
◆ test_setGetPoints_valid()
assAnswerErrorTextTest::test_setGetPoints_valid |
( |
| ) |
|
Definition at line 55 of file assAnswerErrorTextTest.php.
59 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
64 $instance->points = $expected;
65 $actual = $instance->points;
68 $this->assertEquals($actual, $expected);
Class for error text answers.
◆ test_setGetTextCorrect()
assAnswerErrorTextTest::test_setGetTextCorrect |
( |
| ) |
|
Definition at line 85 of file assAnswerErrorTextTest.php.
88 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
90 $expected =
'Correct text';
93 $instance->text_correct = $expected;
94 $actual = $instance->text_correct;
97 $this->assertEquals($actual, $expected);
Class for error text answers.
◆ test_setGetTextWrong_valid()
assAnswerErrorTextTest::test_setGetTextWrong_valid |
( |
| ) |
|
Definition at line 100 of file assAnswerErrorTextTest.php.
103 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
105 $expected =
'Errortext';
108 $instance->text_wrong = $expected;
109 $actual = $instance->text_wrong;
112 $this->assertEquals($actual, $expected);
Class for error text answers.
◆ test_setGetUnknown()
assAnswerErrorTextTest::test_setGetUnknown |
( |
| ) |
|
Definition at line 130 of file assAnswerErrorTextTest.php.
133 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
138 $instance->undefined123 =
'No expectations';
139 $actual = $instance->undefined123;
142 $this->assertEquals($expected, $actual);
Class for error text answers.
◆ test_setPoints_invalid()
assAnswerErrorTextTest::test_setPoints_invalid |
( |
| ) |
|
Definition at line 71 of file assAnswerErrorTextTest.php.
74 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
79 $instance->points = $expected;
80 $actual = $instance->points;
82 $this->assertEquals($expected, $actual);
Class for error text answers.
◆ test_setTextWrong_invalid()
assAnswerErrorTextTest::test_setTextWrong_invalid |
( |
| ) |
|
Definition at line 115 of file assAnswerErrorTextTest.php.
118 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
123 $instance->text_wrong = $expected;
124 $actual = $instance->text_wrong;
127 $this->assertEquals($expected, $actual);
Class for error text answers.
◆ $backupGlobals
assAnswerErrorTextTest::$backupGlobals = false |
|
protected |
The documentation for this class was generated from the following file: