As note in T218817, StringUtils::explode() returns an ExplodeIterator if [[ https://github.com/wikimedia/mediawiki/blob/master/includes/libs/StringUtils.php#L337 | the $text has more that 1000 lines ]].
We should write a parser test covers that case.