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'))
19 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
20 ilUnitUtil::performInitialisation();
24 chdir( dirname( __FILE__ ) );
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
◆ test_instantiateObjectFull()
assAnswerErrorTextTest::test_instantiateObjectFull |
( |
| ) |
|
Definition at line 42 of file assAnswerErrorTextTest.php.
45 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
55 $this->assertTrue(TRUE);
Class for error text answers.
◆ test_instantiateObjectSimple()
assAnswerErrorTextTest::test_instantiateObjectSimple |
( |
| ) |
|
Definition at line 29 of file assAnswerErrorTextTest.php.
32 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
38 $this->assertTrue(TRUE);
Class for error text answers.
◆ test_setGetPoints_valid()
assAnswerErrorTextTest::test_setGetPoints_valid |
( |
| ) |
|
Definition at line 58 of file assAnswerErrorTextTest.php.
62 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
67 $instance->points = $expected;
68 $actual = $instance->points;
71 $this->assertEquals($actual, $expected);
Class for error text answers.
◆ test_setGetTextCorrect()
assAnswerErrorTextTest::test_setGetTextCorrect |
( |
| ) |
|
Definition at line 88 of file assAnswerErrorTextTest.php.
91 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
93 $expected =
'Correct text';
96 $instance->text_correct = $expected;
97 $actual = $instance->text_correct;
100 $this->assertEquals($actual, $expected);
Class for error text answers.
◆ test_setGetTextWrong_valid()
assAnswerErrorTextTest::test_setGetTextWrong_valid |
( |
| ) |
|
Definition at line 103 of file assAnswerErrorTextTest.php.
106 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
108 $expected =
'Errortext';
111 $instance->text_wrong = $expected;
112 $actual = $instance->text_wrong;
115 $this->assertEquals($actual, $expected);
Class for error text answers.
◆ test_setGetUnknown()
assAnswerErrorTextTest::test_setGetUnknown |
( |
| ) |
|
Definition at line 133 of file assAnswerErrorTextTest.php.
136 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
141 $instance->undefined123 =
'No expectations';
142 $actual = $instance->undefined123;
145 $this->assertEquals($expected, $actual);
Class for error text answers.
◆ test_setPoints_invalid()
assAnswerErrorTextTest::test_setPoints_invalid |
( |
| ) |
|
Definition at line 74 of file assAnswerErrorTextTest.php.
77 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
82 $instance->points = $expected;
83 $actual = $instance->points;
85 $this->assertEquals($expected, $actual);
Class for error text answers.
◆ test_setTextWrong_invalid()
assAnswerErrorTextTest::test_setTextWrong_invalid |
( |
| ) |
|
Definition at line 118 of file assAnswerErrorTextTest.php.
121 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerErrorText.php';
126 $instance->text_wrong = $expected;
127 $actual = $instance->text_wrong;
130 $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: