mirror of
https://github.com/pestphp/pest.git
synced 2026-03-09 17:27:22 +01:00
fix: add repeat iteration as the last argument when combined with dataset
This commit is contained in:
@ -262,8 +262,9 @@ trait Testable
|
||||
{
|
||||
$method = TestSuite::getInstance()->tests->get(self::$__filename)->getMethod($this->name());
|
||||
|
||||
if ($method->repetitions > 1 && $method->datasets !== []) {
|
||||
array_shift($arguments);
|
||||
if ($method->repetitions > 1) {
|
||||
$firstArgument = array_shift($arguments);
|
||||
$arguments[] = $firstArgument;
|
||||
}
|
||||
|
||||
$underlyingTest = Reflection::getFunctionVariable($this->__test, 'closure');
|
||||
|
||||
Reference in New Issue
Block a user