RevisionTest: Revision::constructFromRowArray is not a function
[lhc/web/wiklou.git] / tests / phpunit / includes / debug / MWDebugTest.php
index c1449ea..25cfd3c 100644 (file)
@@ -9,11 +9,13 @@ class MWDebugTest extends MediaWikiTestCase {
        }
 
        public static function setUpBeforeClass() {
+               parent::setUpBeforeClass();
                MWDebug::init();
                MediaWiki\suppressWarnings();
        }
 
        public static function tearDownAfterClass() {
+               parent::tearDownAfterClass();
                MWDebug::deinit();
                MediaWiki\restoreWarnings();
        }
@@ -108,7 +110,7 @@ class MWDebugTest extends MediaWikiTestCase {
                        $this->assertArrayHasKey( $expectedKey, $data['debuginfo'], "debuginfo has $expectedKey" );
                }
 
-               $xml = ApiFormatXml::recXmlPrint( 'help', $data );
+               $xml = ApiFormatXml::recXmlPrint( 'help', $data, null );
 
                // exception not thrown
                $this->assertInternalType( 'string', $xml );