Unit tests.
More...
◆ setUp()
assAnswerMatchingPairTest::setUp |
( |
| ) |
|
|
protected |
Definition at line 15 of file assAnswerMatchingPairTest.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_instantiateObjectSimple()
assAnswerMatchingPairTest::test_instantiateObjectSimple |
( |
| ) |
|
Definition at line 26 of file assAnswerMatchingPairTest.php.
29 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
35 $this->assertInstanceOf(
'assAnswerMatchingPair', $instance);
Class for matching question pairs.
◆ test_setGetDefinition()
assAnswerMatchingPairTest::test_setGetDefinition |
( |
| ) |
|
Definition at line 53 of file assAnswerMatchingPairTest.php.
56 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
58 $expected =
'Definition';
61 $instance->definition = $expected;
62 $actual = $instance->definition;
65 $this->assertEquals($expected, $actual);
Class for matching question pairs.
◆ test_setGetHokum()
assAnswerMatchingPairTest::test_setGetHokum |
( |
| ) |
|
Definition at line 83 of file assAnswerMatchingPairTest.php.
86 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
91 $instance->hokum =
'Hokum Value';
92 $actual = $instance->hokum;
95 $this->assertEquals($expected, $actual);
Class for matching question pairs.
◆ test_setGetPoints()
assAnswerMatchingPairTest::test_setGetPoints |
( |
| ) |
|
Definition at line 68 of file assAnswerMatchingPairTest.php.
71 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
73 $expected =
'Definition';
76 $instance->points = $expected;
77 $actual = $instance->points;
80 $this->assertEquals($expected, $actual);
Class for matching question pairs.
◆ test_setGetTerm()
assAnswerMatchingPairTest::test_setGetTerm |
( |
| ) |
|
Definition at line 38 of file assAnswerMatchingPairTest.php.
41 require_once
'./Modules/TestQuestionPool/classes/class.assAnswerMatchingPair.php';
46 $instance->term = $expected;
47 $actual = $instance->term;
50 $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: