-
Improvement
-
Resolution: Duplicate
-
Low
-
None
Data Providers are awesome, and we already use them in a few places.
timhunt introduced me to them, and they have great potential for separating out the test from the data being tested - this makes them much more legible.
Documentation for them is at https://phpunit.de/manual/current/en/writing-tests-for-phpunit.html#writing-tests-for-phpunit.data-providers
All we need is to use the dataProvider tag in the docblock, and we're gravy. Sadly, cibot and friends currently complain about this.
https://github.com/moodlehq/moodle-local_moodlecheck/pull/23 will address the issue.
- duplicates
-
MDLSITE-3648 Accept @dataProvider as a valid tag
-
- Closed
-