Document how to use an Iterator object with @dataProvider #140

Closed
adamgoucher opened this Issue Jan 28, 2011 · 1 comment

Comments

2 participants
@adamgoucher

The docs for @dataProvider says that the providing function can return either and array of array or a object that implements the Iterator interface. However, this appears to be completely undocumented. It would be nice to have an example of this using either a CSV file or database connection.

@sebastianbergmann

This comment has been minimized.

Show comment Hide comment
@sebastianbergmann

sebastianbergmann Jan 28, 2011

Owner

Added in sebastianbergmann/phpunit-documentation@ce8b14d

In the future, please open documentation issues under the phpunit-documentation project. Thanks!

Added in sebastianbergmann/phpunit-documentation@ce8b14d

In the future, please open documentation issues under the phpunit-documentation project. Thanks!

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment