Unit tests.
More...
◆ setUp()
assAnswerMatchingPairTest::setUp |
( |
| ) |
|
|
protected |
Reimplemented from assBaseTestCase.
Definition at line 15 of file assAnswerMatchingPairTest.php.
15 : void
16 {
17 if (defined('ILIAS_PHPUNIT_CONTEXT')) {
18 include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
19 ilUnitUtil::performInitialisation();
20 } else {
21 chdir(dirname(__FILE__));
22 chdir('../../../');
23 }
24 }
◆ test_instantiateObjectSimple()
assAnswerMatchingPairTest::test_instantiateObjectSimple |
( |
| ) |
|
Definition at line 26 of file assAnswerMatchingPairTest.php.
27 {
28
29 require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
30
31
33
34
35 $this->assertInstanceOf('assAnswerMatchingPair', $instance);
36 }
Class for matching question pairs.
◆ test_setGetDefinition()
assAnswerMatchingPairTest::test_setGetDefinition |
( |
| ) |
|
Definition at line 53 of file assAnswerMatchingPairTest.php.
54 {
55
56 require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
58 $expected = 'Definition';
59
60
61 $instance->definition = $expected;
62 $actual = $instance->definition;
63
64
65 $this->assertEquals($expected, $actual);
66 }
◆ test_setGetHokum()
assAnswerMatchingPairTest::test_setGetHokum |
( |
| ) |
|
Definition at line 83 of file assAnswerMatchingPairTest.php.
84 {
85
86 require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
88 $expected = null;
89
90
91 $instance->hokum = 'Hokum Value';
92 $actual = $instance->hokum;
93
94
95 $this->assertEquals($expected, $actual);
96 }
◆ test_setGetPoints()
assAnswerMatchingPairTest::test_setGetPoints |
( |
| ) |
|
Definition at line 68 of file assAnswerMatchingPairTest.php.
69 {
70
71 require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
73 $expected = 'Definition';
74
75
76 $instance->points = $expected;
77 $actual = $instance->points;
78
79
80 $this->assertEquals($expected, $actual);
81 }
◆ test_setGetTerm()
assAnswerMatchingPairTest::test_setGetTerm |
( |
| ) |
|
Definition at line 38 of file assAnswerMatchingPairTest.php.
39 {
40
41 require_once './Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
43 $expected = 'Term';
44
45
46 $instance->term = $expected;
47 $actual = $instance->term;
48
49
50 $this->assertEquals($expected, $actual);
51 }
◆ $backupGlobals
assAnswerMatchingPairTest::$backupGlobals = false |
|
protected |
The documentation for this class was generated from the following file: