Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP


DBUnit YamlDataSet does not respect empty tables #132

elblinkin opened this Issue · 1 comment

2 participants


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:
if (!is_array($rows)) {

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.

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.