parserTests.php: fix three bitrot bugs with --record
[lhc/web/wiklou.git] / tests / phpunit / includes / parser / NewParserTest.php
index b0c1525..22bb237 100644 (file)
@@ -433,6 +433,7 @@ class NewParserTest extends MediaWikiTestCase {
                        'wgThumbLimits' => [ self::getOptionValue( 'thumbsize', $opts, 180 ) ],
                        'wgMaxTocLevel' => $maxtoclevel,
                        'wgUseTeX' => isset( $opts['math'] ) || isset( $opts['texvc'] ),
+                       'wgWellFormedXml' => true,
                        'wgMathDirectory' => $uploadDir . '/math',
                        'wgDefaultLanguageVariant' => $variant,
                        'wgLinkHolderBatchSize' => $linkHolderBatchSize,
@@ -679,7 +680,7 @@ class NewParserTest extends MediaWikiTestCase {
                        $this->file = $wgParserTestFiles[0];
                }
 
-               return new TestFileIterator( $this->file, $this );
+               return new TestFileDataProvider( $this->file, $this );
        }
 
        /**