Unit tests.
More...
◆ setUp()
assAnswerMatchingTermTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 of file assAnswerMatchingTermTest.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_getUnsetPicture()
assAnswerMatchingTermTest::test_getUnsetPicture |
( |
| ) |
|
Definition at line 71 of file assAnswerMatchingTermTest.php.
74 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
79 $actual = $instance->picture;
82 $this->assertEquals($expected, $actual);
Class for matching question terms.
◆ test_instantiateObjectSimple()
assAnswerMatchingTermTest::test_instantiateObjectSimple |
( |
| ) |
|
Definition at line 29 of file assAnswerMatchingTermTest.php.
32 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
38 $this->assertInstanceOf(
'assAnswerMatchingTerm', $instance);
Class for matching question terms.
◆ test_setGetHokum()
assAnswerMatchingTermTest::test_setGetHokum |
( |
| ) |
|
Definition at line 100 of file assAnswerMatchingTermTest.php.
103 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
108 $instance->hokum =
'Hokum Value';
109 $actual = $instance->hokum;
112 $this->assertEquals($expected, $actual);
Class for matching question terms.
◆ test_setGetIdentifier()
assAnswerMatchingTermTest::test_setGetIdentifier |
( |
| ) |
|
Definition at line 85 of file assAnswerMatchingTermTest.php.
88 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
93 $instance->identifier = $expected;
94 $actual = $instance->identifier;
97 $this->assertEquals($expected, $actual);
Class for matching question terms.
◆ test_setGetPicture()
assAnswerMatchingTermTest::test_setGetPicture |
( |
| ) |
|
Definition at line 56 of file assAnswerMatchingTermTest.php.
59 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
61 $expected =
'path/to/picture?';
64 $instance->picture = $expected;
65 $actual = $instance->picture;
68 $this->assertEquals($expected, $actual);
Class for matching question terms.
◆ test_setGetText()
assAnswerMatchingTermTest::test_setGetText |
( |
| ) |
|
Definition at line 41 of file assAnswerMatchingTermTest.php.
44 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingTerm.php';
49 $instance->text = $expected;
50 $actual = $instance->text;
53 $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: