feat: add repeat iteration as function argument if no extra dataset is provided

This commit is contained in:
Katalam
2023-10-05 23:07:03 +02:00
parent 8c0b933fcd
commit 3ee5c29a00
3 changed files with 6 additions and 2 deletions

View File

@ -262,7 +262,7 @@ trait Testable
{
$method = TestSuite::getInstance()->tests->get(self::$__filename)->getMethod($this->name());
if ($method->repetitions > 1) {
if ($method->repetitions > 1 && $method->datasets !== []) {
array_shift($arguments);
}