Unit tests.
More...
◆ setUp()
assAnswerMatchingTermTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 of file assAnswerMatchingTermTest.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_getUnsetPicture()
assAnswerMatchingTermTest::test_getUnsetPicture |
( |
| ) |
|
Definition at line 68 of file assAnswerMatchingTermTest.php.
71 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
76 $actual = $instance->picture;
79 $this->assertEquals($expected, $actual);
Class for matching question terms.
◆ test_instantiateObjectSimple()
assAnswerMatchingTermTest::test_instantiateObjectSimple |
( |
| ) |
|
Definition at line 26 of file assAnswerMatchingTermTest.php.
29 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
35 $this->assertInstanceOf(
'assAnswerMatchingTerm', $instance);
Class for matching question terms.
◆ test_setGetHokum()
assAnswerMatchingTermTest::test_setGetHokum |
( |
| ) |
|
Definition at line 97 of file assAnswerMatchingTermTest.php.
100 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
105 $instance->hokum =
'Hokum Value';
106 $actual = $instance->hokum;
109 $this->assertEquals($expected, $actual);
Class for matching question terms.
◆ test_setGetIdentifier()
assAnswerMatchingTermTest::test_setGetIdentifier |
( |
| ) |
|
Definition at line 82 of file assAnswerMatchingTermTest.php.
85 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
90 $instance->identifier = $expected;
91 $actual = $instance->identifier;
94 $this->assertEquals($expected, $actual);
Class for matching question terms.
◆ test_setGetPicture()
assAnswerMatchingTermTest::test_setGetPicture |
( |
| ) |
|
Definition at line 53 of file assAnswerMatchingTermTest.php.
56 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
58 $expected =
'path/to/picture?';
61 $instance->picture = $expected;
62 $actual = $instance->picture;
65 $this->assertEquals($expected, $actual);
Class for matching question terms.
◆ test_setGetText()
assAnswerMatchingTermTest::test_setGetText |
( |
| ) |
|
Definition at line 38 of file assAnswerMatchingTermTest.php.
41 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
46 $instance->text = $expected;
47 $actual = $instance->text;
50 $this->assertEquals($expected, $actual);
Class for matching question terms.
◆ $backupGlobals
assAnswerMatchingTermTest::$backupGlobals = false |
|
protected |
The documentation for this class was generated from the following file: