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