diff --git a/tests/phpunit/includes/utils.php b/tests/phpunit/includes/utils.php index 66c8756bf7..96d9badaa1 100644 --- a/tests/phpunit/includes/utils.php +++ b/tests/phpunit/includes/utils.php @@ -157,7 +157,7 @@ class testXMLParser { } function parse($in) { - $parse = xml_parse($this->xml, $in, sizeof($in)); + $parse = xml_parse($this->xml, $in, true); if (!$parse) { trigger_error(sprintf("XML error: %s at line %d", xml_error_string(xml_get_error_code($this->xml)),