Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
DBUnit YamlDataSet does not respect empty tables #132
A yaml data set file with a 'table_name:' followed by no rows should be treated like an empty table so that TRUNCATE, DELETE, DELETE_ALL, and CLEAN_INSERT can clear out that table on setUp and tearDown operations.
Looks like deleting lines 89-91 in the YamlDataSet should do it:
As sfYaml seems to not return an empty array, and the remainder of the addYamlFile seems to safely handle the case where $rows is not set when determining column names.