ILIAS  release_4-3 Revision
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilModulesTestQuestionPoolSuite.php
Go to the documentation of this file.
1 <?php
2 /*
3  +-----------------------------------------------------------------------------+
4  | ILIAS open source |
5  +-----------------------------------------------------------------------------+
6  | Copyright (c) 1998-2009 ILIAS open source, University of Cologne |
7  | |
8  | This program is free software; you can redistribute it and/or |
9  | modify it under the terms of the GNU General Public License |
10  | as published by the Free Software Foundation; either version 2 |
11  | of the License, or (at your option) any later version. |
12  | |
13  | This program is distributed in the hope that it will be useful, |
14  | but WITHOUT ANY WARRANTY; without even the implied warranty of |
15  | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
16  | GNU General Public License for more details. |
17  | |
18  | You should have received a copy of the GNU General Public License |
19  | along with this program; if not, write to the Free Software |
20  | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
21  +-----------------------------------------------------------------------------+
22 */
23 
25 {
26  public static function suite()
27  {
28  if (defined('ILIAS_PHPUNIT_CONTEXT'))
29  {
30  include_once("./Services/PHPUnit/classes/class.ilUnitUtil.php");
31  ilUnitUtil::performInitialisation();
32  }
33  else
34  {
35  chdir( dirname( __FILE__ ) );
36  chdir('../../../');
37  }
38 
40 
41  // Questiontypes & related classes
42  // -------------------------------------------------------------------------------------------------------------
43 
44  // Type: Question (Base class)
45  require_once("./Modules/TestQuestionPool/test/assQuestionTest.php");
46  $suite->addTestSuite("assQuestionTest");
47 
48  require_once("./Modules/TestQuestionPool/test/assQuestionGUITest.php");
49  $suite->addTestSuite("assQuestionGUITest");
50 
51  // Type: Cloze
52  require_once("./Modules/TestQuestionPool/test/assClozeGapTest.php");
53  $suite->addTestSuite("assClozeGapTest");
54 
55  require_once("./Modules/TestQuestionPool/test/assClozeSelectGapTest.php");
56  $suite->addTestSuite("assClozeSelectGapTest");
57 
58  require_once("./Modules/TestQuestionPool/test/assClozeTestTest.php");
59  $suite->addTestSuite("assClozeTestTest");
60 
61  require_once("./Modules/TestQuestionPool/test/assClozeTestGUITest.php");
62  $suite->addTestSuite("assClozeTestGUITest");
63 
64  // Type: ErrorText
65  require_once("./Modules/TestQuestionPool/test/assErrorTextTest.php");
66  $suite->addTestSuite("assErrorTextTest");
67 
68  require_once("./Modules/TestQuestionPool/test/assErrorTextGUITest.php");
69  $suite->addTestSuite("assErrorTextGUITest");
70 
71  // Type: FileUpload
72  require_once("./Modules/TestQuestionPool/test/assFileUploadTest.php");
73  $suite->addTestSuite("assFileUploadTest");
74 
75  require_once("./Modules/TestQuestionPool/test/assFileUploadGUITest.php");
76  $suite->addTestSuite("assFileUploadGUITest");
77 
78  // Type: Flash
79  require_once("./Modules/TestQuestionPool/test/assFlashQuestionTest.php");
80  $suite->addTestSuite("assFlashQuestionTest");
81 
82  require_once("./Modules/TestQuestionPool/test/assFlashQuestionGUITest.php");
83  $suite->addTestSuite("assFlashQuestionGUITest");
84 
85  // Type: Imagemap
86  require_once("./Modules/TestQuestionPool/test/assImagemapQuestionTest.php");
87  $suite->addTestSuite("assImagemapQuestionTest");
88 
89  require_once("./Modules/TestQuestionPool/test/assImagemapQuestionGUITest.php");
90  $suite->addTestSuite("assImagemapQuestionGUITest");
91 
92  // Zype: JavaApplet
93  require_once("./Modules/TestQuestionPool/test/assJavaAppletTest.php");
94  $suite->addTestSuite("assJavaAppletTest");
95 
96  require_once("./Modules/TestQuestionPool/test/assJavaAppletGUITest.php");
97  $suite->addTestSuite("assJavaAppletGUITest");
98 
99  // Type: MatchingQuestion
100  require_once("./Modules/TestQuestionPool/test/assMatchingQuestionTest.php");
101  $suite->addTestSuite("assMatchingQuestionTest");
102 
103  require_once("./Modules/TestQuestionPool/test/assMatchingQuestionGUITest.php");
104  $suite->addTestSuite("assMatchingQuestionGUITest");
105 
106  // Type: MultipleChoice
107  require_once("./Modules/TestQuestionPool/test/assMultipleChoiceTest.php");
108  //$suite->addTestSuite("assMultipleChoiceTest");
109  // Incompatible with local mode
110 
111  require_once("./Modules/TestQuestionPool/test/assMultipleChoiceGUITest.php");
112  $suite->addTestSuite("assMultipleChoiceGUITest");
113 
114  // Type: Numeric
115  require_once("./Modules/TestQuestionPool/test/assNumericTest.php");
116  $suite->addTestSuite("assNumericTest");
117 
118  require_once("./Modules/TestQuestionPool/test/assNumericGUITest.php");
119  $suite->addTestSuite("assNumericGUITest");
120 
121  require_once("./Modules/TestQuestionPool/test/assNumericRangeTest.php");
122  $suite->addTestSuite("assNumericRangeTest");
123 
124  // Type: OrderingHorizontal
125  require_once("./Modules/TestQuestionPool/test/assOrderingHorizontalTest.php");
126  $suite->addTestSuite("assOrderingHorizontalTest");
127 
128  require_once("./Modules/TestQuestionPool/test/assOrderingHorizontalGUITest.php");
129  $suite->addTestSuite("assOrderingHorizontalGUITest");
130 
131  // Type: Ordering
132  require_once("./Modules/TestQuestionPool/test/assOrderingQuestionTest.php");
133  $suite->addTestSuite("assOrderingQuestionTest");
134 
135  require_once("./Modules/TestQuestionPool/test/assOrderingQuestionGUITest.php");
136  $suite->addTestSuite("assOrderingQuestionGUITest");
137 
138  // Type: SingleChoice
139  require_once("./Modules/TestQuestionPool/test/assSingleChoiceTest.php");
140  //$suite->addTestSuite("assSingleChoiceTest");
141  // Incompatible with local mode
142 
143  require_once("./Modules/TestQuestionPool/test/assSingleChoiceGUITest.php");
144  $suite->addTestSuite("assSingleChoiceGUITest");
145 
146  // Type: Text (Essay)
147  require_once("./Modules/TestQuestionPool/test/assTextQuestionTest.php");
148  $suite->addTestSuite("assTextQuestionTest");
149 
150  require_once("./Modules/TestQuestionPool/test/assTextQuestionGUITest.php");
151  $suite->addTestSuite("assTextQuestionGUITest");
152 
153  // Type: TextSubset
154  require_once("./Modules/TestQuestionPool/test/assTextSubsetTest.php");
155  $suite->addTestSuite("assTextSubsetTest");
156 
157  require_once("./Modules/TestQuestionPool/test/assTextSubsetGUITest.php");
158  $suite->addTestSuite("assTextSubsetGUITest");
159 
160  // Input GUIs
161  // -------------------------------------------------------------------------------------------------------------
162  require_once("./Modules/TestQuestionPool/test/ilAnswerWizardInputGUITest.php");
163  $suite->addTestSuite("ilAnswerWizardInputGUITest");
164 
165  // Hints
166  // -------------------------------------------------------------------------------------------------------------
167  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintTest.php");
168  $suite->addTestSuite("ilAssQuestionHintTest");
169 
170  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintAbstractTest.php");
171  $suite->addTestSuite("ilAssQuestionHintAbstractTest");
172 
173  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintGUITest.php");
174  $suite->addTestSuite("ilAssQuestionHintGUITest");
175 
176  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintListTest.php");
177  $suite->addTestSuite("ilAssQuestionHintListTest");
178 
179  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintRequestGUITest.php");
180  $suite->addTestSuite("ilAssQuestionHintRequestGUITest");
181 
182  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintRequestStatisticDataTest.php");
183  $suite->addTestSuite("ilAssQuestionHintRequestStatisticDataTest");
184 
185  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintsGUITest.php");
186  $suite->addTestSuite("ilAssQuestionHintsGUITest");
187 
188  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintsOrderingClipboardTest.php");
189  $suite->addTestSuite("ilAssQuestionHintsOrderingClipboardTest");
190 
191  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintsTableGUITest.php");
192  $suite->addTestSuite("ilAssQuestionHintsTableGUITest");
193 
194  require_once("./Modules/TestQuestionPool/test/ilAssQuestionHintTrackingTest.php");
195  $suite->addTestSuite("ilAssQuestionHintTrackingTest");
196 
197  // Answertypes
198  // -------------------------------------------------------------------------------------------------------------
199  require_once("./Modules/TestQuestionPool/test/assAnswerBinaryStateTest.php");
200  $suite->addTestSuite("assAnswerBinaryStateTest");
201 
202  require_once("./Modules/TestQuestionPool/test/assAnswerBinaryStateImageTest.php");
203  $suite->addTestSuite("assAnswerBinaryStateImageTest");
204 
205  require_once("./Modules/TestQuestionPool/test/assAnswerClozeTest.php");
206  $suite->addTestSuite("assAnswerClozeTest");
207 
208  require_once("./Modules/TestQuestionPool/test/assAnswerErrorTextTest.php");
209  $suite->addTestSuite("assAnswerErrorTextTest"); // mbecker: 100% Coverage @ 03.08.2012
210 
211  require_once("./Modules/TestQuestionPool/test/assAnswerImagemapTest.php");
212  $suite->addTestSuite("assAnswerImagemapTest");
213 
214  require_once("./Modules/TestQuestionPool/test/assAnswerMatchingTest.php");
215  $suite->addTestSuite("assAnswerMatchingTest");
216 
217  require_once("./Modules/TestQuestionPool/test/assAnswerMatchingDefinitionTest.php");
218  $suite->addTestSuite("assAnswerMatchingDefinitionTest");
219 
220  require_once("./Modules/TestQuestionPool/test/assAnswerMatchingPairTest.php");
221  $suite->addTestSuite("assAnswerMatchingPairTest");
222 
223  require_once("./Modules/TestQuestionPool/test/assAnswerMatchingTermTest.php");
224  $suite->addTestSuite("assAnswerMatchingTermTest");
225 
226  require_once("./Modules/TestQuestionPool/test/assAnswerMultipleResponseTest.php");
227  $suite->addTestSuite("assAnswerMultipleResponseTest");
228 
229  require_once("./Modules/TestQuestionPool/test/assAnswerMultipleResponseImageTest.php");
230  $suite->addTestSuite("assAnswerMultipleResponseImageTest");
231 
232  require_once("./Modules/TestQuestionPool/test/assAnswerOrderingTest.php");
233  $suite->addTestSuite("assAnswerOrderingTest");
234 
235  require_once("./Modules/TestQuestionPool/test/assAnswerSimpleTest.php");
236  $suite->addTestSuite("assAnswerSimpleTest");
237 
238  require_once("./Modules/TestQuestionPool/test/assAnswerTrueFalseTest.php");
239  $suite->addTestSuite("assAnswerTrueFalseTest");
240 
241  return $suite;
242  }
243 }
244 ?>