File tree Expand file tree Collapse file tree 1 file changed +10
-1
lines changed
src/Magento/FunctionalTestingFramework/Util Expand file tree Collapse file tree 1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -264,7 +264,16 @@ public function throwExceptionIfDuplicateArgumentsFound(string $fileContents)
264
264
$ argArr [$ key ] = explode (" " , trim ($ fileVal ))[1 ];
265
265
}
266
266
}
267
-
267
+ foreach ($ argArr as $ key => $ arrVal ) {
268
+ if (!empty ($ argArr [$ key + 1 ]) && $ argArr [$ key + 1 ] === $ arrVal ) {
269
+ $ err [] = 'Duplicate argument name ' .$ arrVal .' not allowed in helper or actionGroup ' ;
270
+ throw new TestFrameworkException (implode (PHP_EOL , $ err ));
271
+ }
272
+ if (!empty ($ argArr [$ key + 2 ]) && $ argArr [$ key + 2 ] === $ arrVal ) {
273
+ $ err [] = 'Duplicate argument name ' .$ arrVal .' not allowed in helper or actionGroup ' ;
274
+ throw new TestFrameworkException (implode (PHP_EOL , $ err ));
275
+ }
276
+ }
268
277
}
269
278
270
279
/**
You can’t perform that action at this time.
0 commit comments