ILIAS  release_5-4 Revision v5.4.26-12-gabc799a52e6
ilModulesTestQuestionPoolSuite.php
Go to the documentation of this file.
1 <?php
2 /* Copyright (c) 1998-2013 ILIAS open source, Extended GPL, see docs/LICENSE */
3 
5 {
6  public static function suite()
7  {
8  if (defined('ILIAS_PHPUNIT_CONTEXT')) {
9  include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
10  ilUnitUtil::performInitialisation();
11  } else {
12  chdir(dirname(__FILE__));
13  chdir('../../../');
14  }
15 
16  require_once("./Modules/TestQuestionPool/test/assBaseTestCase.php");
17 
19 
20  // Questiontypes & related classes
21  // -------------------------------------------------------------------------------------------------------------
22 
23  // Type: Question (Base class)
24  require_once("./Modules/TestQuestionPool/test/assQuestionTest.php");
25  $suite->addTestSuite("assQuestionTest");
26 
27  require_once("./Modules/TestQuestionPool/test/assQuestionGUITest.php");
28  $suite->addTestSuite("assQuestionGUITest");
29 
30  // Type: Cloze
31  require_once("./Modules/TestQuestionPool/test/assClozeGapTest.php");
32  $suite->addTestSuite("assClozeGapTest");
33 
34  require_once("./Modules/TestQuestionPool/test/assClozeSelectGapTest.php");
35  $suite->addTestSuite("assClozeSelectGapTest");
36 
37  require_once("./Modules/TestQuestionPool/test/assClozeTestTest.php");
38  $suite->addTestSuite("assClozeTestTest");
39 
40  require_once("./Modules/TestQuestionPool/test/assClozeTestGUITest.php");
41  $suite->addTestSuite("assClozeTestGUITest");
42 
43  // Type: ErrorText
44  require_once("./Modules/TestQuestionPool/test/assErrorTextTest.php");
45  $suite->addTestSuite("assErrorTextTest");
46 
47  require_once("./Modules/TestQuestionPool/test/assErrorTextGUITest.php");
48  $suite->addTestSuite("assErrorTextGUITest");
49 
50  // Type: FileUpload
51  require_once("./Modules/TestQuestionPool/test/assFileUploadTest.php");
52  $suite->addTestSuite("assFileUploadTest");
53 
54  require_once("./Modules/TestQuestionPool/test/assFileUploadGUITest.php");
55  $suite->addTestSuite("assFileUploadGUITest");
56 
57  // Type: Flash
58  require_once("./Modules/TestQuestionPool/test/assFlashQuestionTest.php");
59  $suite->addTestSuite("assFlashQuestionTest");
60 
61  require_once("./Modules/TestQuestionPool/test/assFlashQuestionGUITest.php");
62  $suite->addTestSuite("assFlashQuestionGUITest");
63 
64  // Type: Formula
65  require_once("./Modules/TestQuestionPool/test/assFormulaQuestionTest.php");
66  $suite->addTestSuite("assFormulaQuestionTest");
67 
68  require_once("./Modules/TestQuestionPool/test/assFormulaQuestionGUITest.php");
69  $suite->addTestSuite("assFormulaQuestionGUITest");
70 
71  // Type: Imagemap
72  require_once("./Modules/TestQuestionPool/test/assImagemapQuestionTest.php");
73  $suite->addTestSuite("assImagemapQuestionTest");
74 
75  require_once("./Modules/TestQuestionPool/test/assImagemapQuestionGUITest.php");
76  $suite->addTestSuite("assImagemapQuestionGUITest");
77 
78  // Zype: JavaApplet
79  require_once("./Modules/TestQuestionPool/test/assJavaAppletTest.php");
80  $suite->addTestSuite("assJavaAppletTest");
81 
82  require_once("./Modules/TestQuestionPool/test/assJavaAppletGUITest.php");
83  $suite->addTestSuite("assJavaAppletGUITest");
84 
85  // Type: MatchingQuestion
86  require_once("./Modules/TestQuestionPool/test/assMatchingQuestionTest.php");
87  $suite->addTestSuite("assMatchingQuestionTest");
88 
89  require_once("./Modules/TestQuestionPool/test/assMatchingQuestionGUITest.php");
90  $suite->addTestSuite("assMatchingQuestionGUITest");
91 
92  // Type: MultipleChoice
93  require_once("./Modules/TestQuestionPool/test/assMultipleChoiceTest.php");
94  $suite->addTestSuite("assMultipleChoiceTest");
95  // Incompatible with local mode
96 
97  require_once("./Modules/TestQuestionPool/test/assMultipleChoiceGUITest.php");
98  $suite->addTestSuite("assMultipleChoiceGUITest");
99 
100  // Type: Numeric
101  require_once("./Modules/TestQuestionPool/test/assNumericTest.php");
102  $suite->addTestSuite("assNumericTest");
103 
104  require_once("./Modules/TestQuestionPool/test/assNumericGUITest.php");
105  $suite->addTestSuite("assNumericGUITest");
106 
107  require_once("./Modules/TestQuestionPool/test/assNumericRangeTest.php");
108  $suite->addTestSuite("assNumericRangeTest");
109 
110  // Type: OrderingHorizontal
111  require_once("./Modules/TestQuestionPool/test/assOrderingHorizontalTest.php");
112  $suite->addTestSuite("assOrderingHorizontalTest");
113 
114  require_once("./Modules/TestQuestionPool/test/assOrderingHorizontalGUITest.php");
115  $suite->addTestSuite("assOrderingHorizontalGUITest");
116 
117  // Type: Ordering
118  require_once("./Modules/TestQuestionPool/test/assOrderingQuestionTest.php");
119  $suite->addTestSuite("assOrderingQuestionTest");
120 
121  require_once("./Modules/TestQuestionPool/test/assOrderingQuestionGUITest.php");
122  $suite->addTestSuite("assOrderingQuestionGUITest");
123 
124  // Type: SingleChoice
125  require_once("./Modules/TestQuestionPool/test/assSingleChoiceTest.php");
126  $suite->addTestSuite("assSingleChoiceTest");
127  // Incompatible with local mode
128 
129  require_once("./Modules/TestQuestionPool/test/assSingleChoiceGUITest.php");
130  $suite->addTestSuite("assSingleChoiceGUITest");
131 
132  // Type: Text (Essay)
133  require_once("./Modules/TestQuestionPool/test/assTextQuestionTest.php");
134  $suite->addTestSuite("assTextQuestionTest");
135 
136  require_once("./Modules/TestQuestionPool/test/assTextQuestionGUITest.php");
137  $suite->addTestSuite("assTextQuestionGUITest");
138 
139  // Type: TextSubset
140  require_once("./Modules/TestQuestionPool/test/assTextSubsetTest.php");
141  $suite->addTestSuite("assTextSubsetTest");
142 
143  require_once("./Modules/TestQuestionPool/test/assTextSubsetGUITest.php");
144  $suite->addTestSuite("assTextSubsetGUITest");
145 
146  // Type: LongMenu
147  require_once("./Modules/TestQuestionPool/test/assLongMenuTest.php");
148  $suite->addTestSuite("assLongMenuTest");
149 
150  // Type: assKprimChoiceTest
151  require_once("./Modules/TestQuestionPool/test/assKprimChoiceTest.php");
152  $suite->addTestSuite("assKprimChoiceTest");
153 
154  //require_once("./Modules/TestQuestionPool/test/assTextSubsetGUITest.php");
155  //$suite->addTestSuite("assTextSubsetGUITest");
156 
157 
158  // Input GUIs
159  // -------------------------------------------------------------------------------------------------------------
160  require_once("./Modules/TestQuestionPool/test/ilAnswerWizardInputGUITest.php");
161  $suite->addTestSuite("ilAnswerWizardInputGUITest");
162 
163  // Hints
164  // -------------------------------------------------------------------------------------------------------------
165  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintTest.php");
166  $suite->addTestSuite("ilAssQuestionHintTest");
167 
168  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintAbstractTest.php");
169  $suite->addTestSuite("ilAssQuestionHintAbstractTest");
170 
171  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintGUITest.php");
172  $suite->addTestSuite("ilAssQuestionHintGUITest");
173 
174  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintListTest.php");
175  $suite->addTestSuite("ilAssQuestionHintListTest");
176 
177  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintRequestGUITest.php");
178  $suite->addTestSuite("ilAssQuestionHintRequestGUITest");
179 
180  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintRequestStatisticDataTest.php");
181  $suite->addTestSuite("ilAssQuestionHintRequestStatisticDataTest");
182 
183  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintsGUITest.php");
184  $suite->addTestSuite("ilAssQuestionHintsGUITest");
185 
186  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintsOrderingClipboardTest.php");
187  $suite->addTestSuite("ilAssQuestionHintsOrderingClipboardTest");
188 
189  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintsTableGUITest.php");
190  $suite->addTestSuite("ilAssQuestionHintsTableGUITest");
191 
192  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintTrackingTest.php");
193  $suite->addTestSuite("ilAssQuestionHintTrackingTest");
194 
195  // Answertypes
196  // -------------------------------------------------------------------------------------------------------------
197  require_once("./Modules/TestQuestionPool/test/assAnswerBinaryStateTest.php");
198  $suite->addTestSuite("assAnswerBinaryStateTest");
199 
200  require_once("./Modules/TestQuestionPool/test/assAnswerBinaryStateImageTest.php");
201  $suite->addTestSuite("assAnswerBinaryStateImageTest");
202 
203  require_once("./Modules/TestQuestionPool/test/assAnswerClozeTest.php");
204  $suite->addTestSuite("assAnswerClozeTest");
205 
206  require_once("./Modules/TestQuestionPool/test/assAnswerErrorTextTest.php");
207  $suite->addTestSuite("assAnswerErrorTextTest"); // mbecker: 100% Coverage @ 03.08.2012
208 
209  require_once("./Modules/TestQuestionPool/test/assAnswerImagemapTest.php");
210  $suite->addTestSuite("assAnswerImagemapTest");
211 
212  require_once("./Modules/TestQuestionPool/test/assAnswerMatchingTest.php");
213  $suite->addTestSuite("assAnswerMatchingTest");
214 
215  require_once("./Modules/TestQuestionPool/test/assAnswerMatchingDefinitionTest.php");
216  $suite->addTestSuite("assAnswerMatchingDefinitionTest");
217 
218  require_once("./Modules/TestQuestionPool/test/assAnswerMatchingPairTest.php");
219  $suite->addTestSuite("assAnswerMatchingPairTest");
220 
221  require_once("./Modules/TestQuestionPool/test/assAnswerMatchingTermTest.php");
222  $suite->addTestSuite("assAnswerMatchingTermTest");
223 
224  require_once("./Modules/TestQuestionPool/test/assAnswerMultipleResponseTest.php");
225  $suite->addTestSuite("assAnswerMultipleResponseTest");
226 
227  require_once("./Modules/TestQuestionPool/test/assAnswerMultipleResponseImageTest.php");
228  $suite->addTestSuite("assAnswerMultipleResponseImageTest");
229 
230  require_once("./Modules/TestQuestionPool/test/assAnswerOrderingTest.php");
231  $suite->addTestSuite("assAnswerOrderingTest");
232 
233  require_once("./Modules/TestQuestionPool/test/assAnswerSimpleTest.php");
234  $suite->addTestSuite("assAnswerSimpleTest");
235 
236  require_once("./Modules/TestQuestionPool/test/assAnswerTrueFalseTest.php");
237  $suite->addTestSuite("assAnswerTrueFalseTest");
238 
239  require_once("./Modules/TestQuestionPool/test/ilAssQuestionSkillAssignmentRegistryTest.php");
240  $suite->addTestSuite("ilAssQuestionSkillAssignmentRegistryTest");
241 
242  return $suite;
243  }
244 }
$suite