chore: replace prop set/check with method call

This commit is contained in:
jordanbrauer
2021-07-27 23:39:26 -05:00
parent 43920f79a9
commit 8d24b4a217
2 changed files with 2 additions and 10 deletions

View File

@ -66,13 +66,6 @@ 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.
*
@ -241,6 +234,7 @@ final class TestCaseFactory
*/
public function receivesArguments(): bool
{
return $this->dependent === true || count($this->datasets) > 0;
return count($this->datasets) > 0
|| $this->factoryProxies->count('addDependencies') > 0;
}
}

View File

@ -102,8 +102,6 @@ final class TestCall
->factoryProxies
->add(Backtrace::file(), Backtrace::line(), 'addDependencies', [$tests]);
$this->testCaseFactory->dependent = true;
return $this;
}