Skip to content

Commit fce0267

Browse files
committed
refactor: apply generator to base draft test case
1 parent 16b0d9a commit fce0267

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/Drafts/BaseDraftTestCase.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,14 @@ private function setUpTests(bool $isValid): array
4545
return $tests;
4646
}
4747

48-
public function getInvalidTests(): array
48+
public function getInvalidTests(): \Generator
4949
{
50-
return $this->setUpTests(false);
50+
yield from $this->setUpTests(false);
5151
}
5252

53-
public function getValidTests(): array
53+
public function getValidTests(): \Generator
5454
{
55-
return $this->setUpTests(true);
55+
yield from $this->setUpTests(true);
5656
}
5757

5858
/**

0 commit comments

Comments
 (0)