mirror of
https://github.com/pestphp/pest.git
synced 2026-03-11 18:27:23 +01:00
feat: add boolean property to signal dependency proxy calls
This commit is contained in:
@ -66,6 +66,13 @@ final class TestCaseFactory
|
|||||||
*/
|
*/
|
||||||
public $datasets = [];
|
public $datasets = [];
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Has the current test been marked dependent on others?
|
||||||
|
*
|
||||||
|
* @var bool
|
||||||
|
*/
|
||||||
|
public $dependent = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The FQN of the test case class.
|
* The FQN of the test case class.
|
||||||
*
|
*
|
||||||
|
|||||||
@ -97,6 +97,8 @@ final class TestCall
|
|||||||
->factoryProxies
|
->factoryProxies
|
||||||
->add(Backtrace::file(), Backtrace::line(), 'addDependencies', [$tests]);
|
->add(Backtrace::file(), Backtrace::line(), 'addDependencies', [$tests]);
|
||||||
|
|
||||||
|
$this->testCaseFactory->dependent = true;
|
||||||
|
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user