diff --git a/src/Factories/TestCaseFactory.php b/src/Factories/TestCaseFactory.php index 6efe63f4..63eafaff 100644 --- a/src/Factories/TestCaseFactory.php +++ b/src/Factories/TestCaseFactory.php @@ -66,6 +66,13 @@ final class TestCaseFactory */ public $datasets = []; + /** + * Has the current test been marked dependent on others? + * + * @var bool + */ + public $dependent = false; + /** * The FQN of the test case class. * diff --git a/src/PendingObjects/TestCall.php b/src/PendingObjects/TestCall.php index 39486565..6cf9f0f3 100644 --- a/src/PendingObjects/TestCall.php +++ b/src/PendingObjects/TestCall.php @@ -97,6 +97,8 @@ final class TestCall ->factoryProxies ->add(Backtrace::file(), Backtrace::line(), 'addDependencies', [$tests]); + $this->testCaseFactory->dependent = true; + return $this; }