@@ -199,17 +199,17 @@ private function getSuitesDetails($testManifest): array
199
199
200
200
// Add subsuites array[2nd dimension] to main array[1st dimension] to access it directly later
201
201
if (!empty ($ suites )) {
202
- foreach ($ suites as $ subSuites ) {
203
- if (!empty ($ subSuites )) {
204
- foreach ($ subSuites as $ subSuiteName => $ suiteTestNames ) {
205
- if (!is_numeric ($ subSuiteName )) {
206
- $ suites [$ subSuiteName ] = $ suiteTestNames ;
207
- } else {
208
- continue ;
202
+ foreach ($ suites as $ subSuites ) {
203
+ if (!empty ($ subSuites )) {
204
+ foreach ($ subSuites as $ subSuiteName => $ suiteTestNames ) {
205
+ if (!is_numeric ($ subSuiteName )) {
206
+ $ suites [$ subSuiteName ] = $ suiteTestNames ;
207
+ } else {
208
+ continue ;
209
+ }
210
+ }
209
211
}
210
- }
211
212
}
212
- }
213
213
}
214
214
return $ suites ;
215
215
}
@@ -224,23 +224,24 @@ private function readAllGroupFiles($path): array
224
224
{
225
225
// Read all group files
226
226
if (is_dir ($ path )) {
227
- $ groupFiles = glob ("$ path/group*.txt " );
228
- if ($ groupFiles === false ) {
229
- throw new RuntimeException ("glob(): error with ' $ path' " );
230
- }
231
- sort ($ groupFiles , SORT_NATURAL );
227
+ $ groupFiles = glob ("$ path/group*.txt " );
228
+ if ($ groupFiles === false ) {
229
+ throw new RuntimeException ("glob(): error with ' $ path' " );
230
+ }
231
+ sort ($ groupFiles , SORT_NATURAL );
232
232
}
233
233
234
234
// Read each file in the reverse order and form an array with groupId as key
235
235
$ groupNumber = 0 ;
236
236
$ allGroupsContent = [];
237
237
while (!empty ($ groupFiles )) {
238
- $ group = array_pop ($ groupFiles );
239
- $ allGroupsContent [$ groupNumber ] = file ($ group );
240
- $ groupNumber ++;
238
+ $ group = array_pop ($ groupFiles );
239
+ $ allGroupsContent [$ groupNumber ] = file ($ group );
240
+ $ groupNumber ++;
241
241
}
242
242
return $ allGroupsContent ;
243
243
}
244
+
244
245
/**
245
246
* Function which takes a suite name and a set of test names. The function then generates all relevant supporting
246
247
* files and classes for the suite. The function takes an optional argument for suites which are split by a parallel
0 commit comments