ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
ilServicesWorkflowEngineSuite.php
Go to the documentation of this file.
1<?php
2/* Copyright (c) 1998-2012 ILIAS open source, Extended GPL, see docs/LICENSE */
3
4require_once 'libs/composer/vendor/autoload.php';
5
18{
19 public static function suite()
20 {
21 error_reporting(E_ALL ^ E_NOTICE);
22
23 chdir( dirname( __FILE__ ) );
24 chdir( '../../../' );
25
27
28 //
29 // ---------------------------------------------------------------------
30 // Activities
31 // ---------------------------------------------------------------------
32 //
33
34 require_once './Services/WorkflowEngine/test/activities/ilEventRaisingActivityTest.php';
35 $suite->addTestSuite('ilEventRaisingActivityTest');
36
37 require_once './Services/WorkflowEngine/test/activities/ilLoggingActivityTest.php';
38 $suite->addTestSuite('ilLoggingActivityTest');
39
40 require_once './Services/WorkflowEngine/test/activities/ilScriptActivityTest.php';
41 $suite->addTestSuite('ilScriptActivityTest');
42
43 require_once './Services/WorkflowEngine/test/activities/ilSettingActivityTest.php';
44 $suite->addTestSuite('ilSettingActivityTest');
45
46 require_once './Services/WorkflowEngine/test/activities/ilStaticMethodCallActivityTest.php';
47 $suite->addTestSuite('ilStaticMethodCallActivityTest');
48
49 require_once './Services/WorkflowEngine/test/activities/ilStopWorkflowActivityTest.php';
50 $suite->addTestSuite('ilStopWorkflowActivityTest');
51
52 //
53 // ---------------------------------------------------------------------
54 // Detectors
55 // ---------------------------------------------------------------------
56 //
57
58 require_once './Services/WorkflowEngine/test/detectors/ilCounterDetectorTest.php';
59 $suite->addTestSuite('ilCounterDetectorTest');
60
61 require_once './Services/WorkflowEngine/test/detectors/ilSimpleDetectorTest.php';
62 $suite->addTestSuite('ilSimpleDetectorTest');
63
64 require_once './Services/WorkflowEngine/test/detectors/ilTimerDetectorTest.php';
65 $suite->addTestSuite('ilTimerDetectorTest');
66
67 require_once './Services/WorkflowEngine/test/detectors/ilEventDetectorTest.php';
68 $suite->addTestSuite('ilEventDetectorTest');
69
70 require_once './Services/WorkflowEngine/test/detectors/ilDataDetectorTest.php';
71 $suite->addTestSuite('ilDataDetectorTest');
72
73 //
74 // ---------------------------------------------------------------------
75 // Emitters
76 // ---------------------------------------------------------------------
77 //
78
79 require_once './Services/WorkflowEngine/test/emitters/ilSimpleEmitterTest.php';
80 $suite->addTestSuite('ilSimpleEmitterTest');
81
82 require_once './Services/WorkflowEngine/test/emitters/ilActivationEmitterTest.php';
83 $suite->addTestSuite('ilActivationEmitterTest');
84
85 require_once './Services/WorkflowEngine/test/emitters/ilDataEmitterTest.php';
86 $suite->addTestSuite('ilDataEmitterTest');
87
88 //
89 // ---------------------------------------------------------------------
90 // Nodes
91 // ---------------------------------------------------------------------
92 //
93
94 require_once './Services/WorkflowEngine/test/nodes/ilBasicNodeTest.php';
95 $suite->addTestSuite('ilBasicNodeTest');
96
97 require_once './Services/WorkflowEngine/test/nodes/ilConditionalNodeTest.php';
98 $suite->addTestSuite('ilConditionalNodeTest');
99
100 require_once './Services/WorkflowEngine/test/nodes/ilCaseNodeTest.php';
101 $suite->addTestSuite('ilCaseNodeTest');
102
103 require_once './Services/WorkflowEngine/test/nodes/ilPluginNodeTest.php';
104 $suite->addTestSuite('ilPluginNodeTest');
105
106 //
107 // ---------------------------------------------------------------------
108 // Workflows
109 // ---------------------------------------------------------------------
110 //
111
112 require_once './Services/WorkflowEngine/test/workflows/ilBaseWorkflowTest.php';
113 $suite->addTestSuite('ilBaseWorkflowTest');
114
115 //return $suite; // Uncomment to exclude parsertests for more meaningful coverage data.
116
117 // ---------------------------------------------------------------------
118 // Utils
119 // ---------------------------------------------------------------------
120
121 //
122 // ---------------------------------------------------------------------
123 // Parser - Components
124 // ---------------------------------------------------------------------
125
126 // 001_EmptyWorkflow
127 require_once './Services/WorkflowEngine/test/parser/001_EmptyWorkflow/class.test_001_EmptyWorkflow.php';
128 $suite->addTestSuite('test_001_EmptyWorkflow');
129
130 // 002_StartNode
131 require_once './Services/WorkflowEngine/test/parser/002_StartEvent/class.test_002_StartEvent.php';
132 $suite->addTestSuite('test_002_StartEvent');
133
134 // 003_ParallelGateway
135 require_once './Services/WorkflowEngine/test/parser/003_ParallelGateway/class.test_003_ParallelGateway.php';
136 $suite->addTestSuite('test_003_ParallelGateway');
137
138 // 004_InclusiveGateway
139 require_once './Services/WorkflowEngine/test/parser/004_InclusiveGateway/class.test_004_InclusiveGateway.php';
140 $suite->addTestSuite('test_004_InclusiveGateway');
141
142 // 005_ExclusiveGateway
143 require_once './Services/WorkflowEngine/test/parser/005_ExclusiveGateway/class.test_005_ExclusiveGateway.php';
144 $suite->addTestSuite('test_005_ExclusiveGateway');
145
146 // 006_Task
147 require_once './Services/WorkflowEngine/test/parser/006_Task/class.test_006_Task.php';
148 $suite->addTestSuite('test_006_Task');
149
150 // 007_IntermediateCatchEvent
151 require_once './Services/WorkflowEngine/test/parser/007_IntermediateCatchEvent/class.test_007_IntermediateCatchEvent.php';
152 $suite->addTestSuite('test_007_IntermediateCatchEvent');
153
154 // 008_IntermediateThrowEvent
155 require_once './Services/WorkflowEngine/test/parser/008_IntermediateThrowEvent/class.test_008_IntermediateThrowEvent.php';
156 $suite->addTestSuite('test_008_IntermediateThrowEvent');
157
158 // 009_EndEvent
159 require_once './Services/WorkflowEngine/test/parser/009_EndEvent/class.test_009_EndEvent.php';
160 $suite->addTestSuite('test_009_EndEvent');
161
162 // 010_ComplexGateway
163 require_once './Services/WorkflowEngine/test/parser/010_ComplexGateway/class.test_010_ComplexGateway.php';
164 $suite->addTestSuite('test_010_ComplexGateway');
165
166 // 011_EventBasedGateway
167 require_once './Services/WorkflowEngine/test/parser/011_EventBasedGateway/class.test_011_EventBasedGateway.php';
168 $suite->addTestSuite('test_011_EventBasedGateway');
169
170 // 012_DataInput
171 require_once './Services/WorkflowEngine/test/parser/012_DataInput/class.test_012_DataInput.php';
172 $suite->addTestSuite('test_012_DataInput');
173
174 // 013_DataOutput
175 require_once './Services/WorkflowEngine/test/parser/013_DataOutput/class.test_013_DataOutput.php';
176 $suite->addTestSuite('test_013_DataOutput');
177
178 // 014_DataObject
179 require_once './Services/WorkflowEngine/test/parser/014_DataObject/class.test_014_DataObject.php';
180 $suite->addTestSuite('test_014_DataObject');
181
182 // 015_Data_Wiring
183 require_once './Services/WorkflowEngine/test/parser/015_Data_Wiring/class.test_015_Data_Wiring.php';
184 $suite->addTestSuite('test_015_Data_Wiring');
185
186 //
187 // ---------------------------------------------------------------------
188 // Parser Cases
189 // ---------------------------------------------------------------------
190 //
191 // 014_DataObject
192 require_once './Services/WorkflowEngine/test/parser/case_01/class.test_case_01.php';
193 $suite->addTestSuite('test_case_01');
194
195 // ---------------------------------------------------------------------
196 return $suite;
197 }
198}
$suite
An exception for terminatinating execution or to throw for unit testing.
ilServicesWorkflowEngineSuite is part of the petri net based workflow engine.