You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
everything works fine. IMHO, it should be possible to use \Generator as well. (And the same is probably true for Iterable and \Iterable.)
The text was updated successfully, but these errors were encountered:
PhilippImhof
changed the title
moodle.PHPUnit.TestCaseProvider.dataProviderSyntaxMethodInvalidReturnTyp spits error for \Generator return type
TestCaseProvider.dataProviderSyntaxMethodInvalidReturnType spits error for \Generator return type
Nov 12, 2024
If we have
there will be an error message: `Data provider method "provide_foo" must return an array, a Generator or an Iterable.
If we write this instead:
everything works fine. IMHO, it should be possible to use
\Generator
as well. (And the same is probably true forIterable
and\Iterable
.)The text was updated successfully, but these errors were encountered: