remove dataset name from DatasetArgsCountMismatch

This commit is contained in:
Fabio Ivona
2023-03-24 10:20:20 +01:00
parent cc6bd59df9
commit d9a4fa33b9
2 changed files with 5 additions and 5 deletions

View File

@ -241,7 +241,7 @@ trait Testable
continue;
}
if (in_array($testParameterTypes[$argumentIndex], [\Closure::class, 'callable', 'mixed'])) {
if (in_array($testParameterTypes[$argumentIndex], [Closure::class, 'callable', 'mixed'])) {
continue;
}
@ -255,7 +255,7 @@ trait Testable
return $arguments;
}
if (in_array($testParameterTypes[0], [\Closure::class, 'callable'])) {
if (in_array($testParameterTypes[0], [Closure::class, 'callable'])) {
return $arguments;
}
@ -291,7 +291,7 @@ trait Testable
return;
}
throw new DatasetArgsCountMismatch($this->dataName(), $requiredParametersCount, $suppliedParametersCount);
throw new DatasetArgsCountMismatch($requiredParametersCount, $suppliedParametersCount);
}
/**