}
public static function setUpBeforeClass() {
+ parent::setUpBeforeClass();
MWDebug::init();
MediaWiki\suppressWarnings();
}
public static function tearDownAfterClass() {
+ parent::tearDownAfterClass();
MWDebug::deinit();
MediaWiki\restoreWarnings();
}
$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 );