mirror of
https://github.com/pestphp/pest.git
synced 2026-03-10 09:47:23 +01:00
refactor: move logic into boolean method in TestCaseFactory
This commit is contained in:
@ -235,4 +235,12 @@ final class TestCaseFactory
|
||||
|
||||
return $classFQN;
|
||||
}
|
||||
|
||||
/**
|
||||
* Determine if the test case will receive argument input from Pest, or not.
|
||||
*/
|
||||
public function receivesArguments(): bool
|
||||
{
|
||||
return $this->dependent === true || count($this->datasets) > 0;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user