sebastianbergmann/dbunit — pull request #122 by Sicaine (2014-03-05 11:43:12+00:00)
Title: Added Undefined offset test for reading XmlDataSet

If you define n columns and add n + 1 rows it will generate an undefined offset error.

Example .xml file:

id

1
1

Therefore a check is necessary. Because $rowElement->children()->count() didn't work for me properly it was necessary to test the index in the foreach instead of testing it beforehand with something like 'if ($rowElement->children()->count() >= count($tableInstanceColumns) {}