File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -1235,9 +1235,19 @@ final protected function registerFailureType(string $classOrInterface): void
1235
1235
final protected function runTest (): mixed
1236
1236
{
1237
1237
$ testArguments = array_merge ($ this ->data , array_values ($ this ->dependencyInput ));
1238
+ $ positionalArgs = [];
1239
+ $ namedArgs = [];
1240
+
1241
+ foreach ($ testArguments as $ key => $ value ) {
1242
+ if (is_int ($ key )) {
1243
+ $ positionalArgs [] = $ value ;
1244
+ } else {
1245
+ $ namedArgs [$ key ] = $ value ;
1246
+ }
1247
+ }
1238
1248
1239
1249
try {
1240
- $ testResult = $ this ->{$ this ->methodName }(...$ testArguments );
1250
+ $ testResult = $ this ->{$ this ->methodName }(...$ namedArgs , ... $ positionalArgs );
1241
1251
} catch (Throwable $ exception ) {
1242
1252
if (!$ this ->shouldExceptionExpectationsBeVerified ($ exception )) {
1243
1253
throw $ exception ;
You can’t perform that action at this time.
0 commit comments