From 67e452e9ed28013617bceb83786f1c2232137e95 Mon Sep 17 00:00:00 2001 From: Katalam Date: Fri, 6 Oct 2023 15:10:02 +0200 Subject: [PATCH] chore: add docs --- src/Concerns/Testable.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Concerns/Testable.php b/src/Concerns/Testable.php index 27db6631..e9775e85 100644 --- a/src/Concerns/Testable.php +++ b/src/Concerns/Testable.php @@ -263,6 +263,10 @@ trait Testable $method = TestSuite::getInstance()->tests->get(self::$__filename)->getMethod($this->name()); if ($method->repetitions > 1) { + // If the test is repeated, the first argument is the iteration number + // we need to move it to the end of the arguments list + // so that the datasets are the first n arguments + // and the iteration number is the last argument $firstArgument = array_shift($arguments); $arguments[] = $firstArgument; }