Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is supported too.

Test phpunit_dataset features.

Copyright: 2020 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 942 lines (37 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class


Class: phpunit_dataset_test  - X-Ref

Test phpunit_dataset features.

test_from_files()   X-Ref


from_file_provider()   X-Ref
test_from_file() data provider.


test_from_file(string $fullpath, string $tablename, ?string $exception,array $tables, array $columns, array $rows)   X-Ref


from_string_provider()   X-Ref
test_from_string() data provider.


test_from_string(string $content, string $type, string $tablename, ?string $exception,array $tables, array $columns, array $rows)   X-Ref


from_array_provider()   X-Ref
test_from_array() data provider.


test_from_array(array $structure, ?string $exception,array $tables, array $columns, array $rows, ?bool $repeated = false)   X-Ref


load_csv_provider()   X-Ref
test_load_csv() data provider.


test_load_csv(array $files, ?string $exception,array $tables, array $columns, array $rows)   X-Ref


load_xml_provider()   X-Ref
test_load_xml() data provider.


test_load_xml(array $files, ?string $exception,array $tables, array $columns, array $rows)   X-Ref


to_database_provider()   X-Ref
test_to_database() data provider.


test_to_database(array $files, ?array $filter, ?string $exception, array $columns, array $rows)   X-Ref


get_rows_provider()   X-Ref
test_get_rows() data provider.


test_get_rows(array $files, array $filter, ?string $exception, array $rows)   X-Ref