Moodle APIs 4.1
Moodle 4.1.9+ (Build: 20240402)
|
Handle simple PHP/CSV/XML datasets to be use with ease by unit tests. More...
Classes | |
class | phpunit_dataset |
Lightweight dataset class for phpunit, supports XML, CSV and array datasets. More... | |
Handle simple PHP/CSV/XML datasets to be use with ease by unit tests.
This is a very minimal class, able to load data from PHP arrays and CSV/XML files, optionally uploading them to database.
This doesn't aim to be a complex or complete solution, but just a utility class to replace old phpunit/dbunit uses, because that package is not longer maintained. Note that, ideally, generators should provide the needed utilities to proceed with this loading of information to database and, if there is any future that should be it.