mirror of
https://github.com/pestphp/pest.git
synced 2026-04-21 06:27:28 +02:00
refactor: move logic into boolean method in TestCaseFactory
This commit is contained in:
@ -142,7 +142,7 @@ final class TestRepository
|
||||
throw new TestAlreadyExist($test->filename, $test->description);
|
||||
}
|
||||
|
||||
if ($test->dependent === false && count($test->datasets) === 0) {
|
||||
if (!$test->receivesArguments()) {
|
||||
$arguments = Reflection::getFunctionArguments($test->test);
|
||||
|
||||
if (count($arguments) > 0) {
|
||||
|
||||
Reference in New Issue
Block a user