Unit tests.
More...
◆ setUp()
assAnswerMatchingPairTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 of file assAnswerMatchingPairTest.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_instantiateObjectSimple()
assAnswerMatchingPairTest::test_instantiateObjectSimple |
( |
| ) |
|
Definition at line 29 of file assAnswerMatchingPairTest.php.
32 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
38 $this->assertInstanceOf(
'assAnswerMatchingPair', $instance);
Class for matching question pairs.
◆ test_setGetDefinition()
assAnswerMatchingPairTest::test_setGetDefinition |
( |
| ) |
|
Definition at line 56 of file assAnswerMatchingPairTest.php.
59 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
61 $expected =
'Definition';
64 $instance->definition = $expected;
65 $actual = $instance->definition;
68 $this->assertEquals($expected, $actual);
Class for matching question pairs.
◆ test_setGetHokum()
assAnswerMatchingPairTest::test_setGetHokum |
( |
| ) |
|
Definition at line 86 of file assAnswerMatchingPairTest.php.
89 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
94 $instance->hokum =
'Hokum Value';
95 $actual = $instance->hokum;
98 $this->assertEquals($expected, $actual);
Class for matching question pairs.
◆ test_setGetPoints()
assAnswerMatchingPairTest::test_setGetPoints |
( |
| ) |
|
Definition at line 71 of file assAnswerMatchingPairTest.php.
74 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
76 $expected =
'Definition';
79 $instance->points = $expected;
80 $actual = $instance->points;
83 $this->assertEquals($expected, $actual);
Class for matching question pairs.
◆ test_setGetTerm()
assAnswerMatchingPairTest::test_setGetTerm |
( |
| ) |
|
Definition at line 41 of file assAnswerMatchingPairTest.php.
44 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
49 $instance->term = $expected;
50 $actual = $instance->term;
53 $this->assertEquals($expected, $actual);
Class for matching question pairs.
◆ $backupGlobals
assAnswerMatchingPairTest::$backupGlobals = FALSE |
|
protected |
The documentation for this class was generated from the following file: