From 3b784060b8eaaf0db16b006ec632a3e516207ba7 Mon Sep 17 00:00:00 2001 From: Fabio Ivona Date: Mon, 24 May 2021 23:29:29 +0200 Subject: [PATCH] updated TestCaseFactory.php to store multiple datasets Took 44 seconds --- src/Factories/TestCaseFactory.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Factories/TestCaseFactory.php b/src/Factories/TestCaseFactory.php index ddba1083..5285fc9e 100644 --- a/src/Factories/TestCaseFactory.php +++ b/src/Factories/TestCaseFactory.php @@ -62,9 +62,9 @@ final class TestCaseFactory /** * Holds the dataset, if any. * - * @var Closure|iterable|string|null + * @var array|string> */ - public $dataset; + public $datasets = []; /** * The FQN of the test case class. @@ -155,7 +155,7 @@ final class TestCaseFactory return $testCase; }; - $datasets = Datasets::resolve($this->description, $this->dataset); + $datasets = Datasets::resolve($this->description, $this->datasets); return array_map($createTest, array_keys($datasets), $datasets); }