Fix unreachable test case from multiple datasets

This commit is contained in:
Fabio Ivona
2023-03-13 18:14:26 +01:00
parent dbef162fa6
commit d6e3906da6

View File

@ -228,7 +228,6 @@ trait Testable
$this->__description = self::$__latestDescription = $this->dataName() ? $method->description.' with '.$this->dataName() : $method->description;
$underlyingTest = Reflection::getFunctionVariable($this->__test, 'closure');
$testParameterTypes = array_values(Reflection::getFunctionArguments($underlyingTest));
@ -238,7 +237,7 @@ trait Testable
continue;
}
if (in_array($testParameterTypes[$argumentIndex], [\Closure::class, 'callable'])) {
if (in_array($testParameterTypes[$argumentIndex], [\Closure::class, 'callable', 'mixed'])) {
continue;
}