MediaWiki  1.23.0
ExportDemoTest.php
Go to the documentation of this file.
1 <?php
2 
11 
12  public function testExportDemo() {
13  $fname = "../../docs/export-demo.xml";
15  $dom = new DomDocument();
16  $dom->load( $fname );
17 
18  // Ensure, the demo is for the current version
19  $this->assertEquals(
20  $dom->documentElement->getAttribute( 'version' ),
21  $version,
22  'export-demo.xml should have the current version'
23  );
24 
25  $this->assertTrue(
26  $dom->schemaValidate( "../../docs/export-" . $version . ".xsd" ),
27  "schemaValidate has found an error"
28  );
29  }
30 
31 }
WikiExporter\schemaVersion
static schemaVersion()
Returns the export schema version.
Definition: Export.php:64
DumpTestCase
Base TestCase for dumps.
Definition: DumpTestCase.php:6
php
skin txt MediaWiki includes four core it has been set as the default in MediaWiki since the replacing Monobook it had been been the default skin since before being replaced by Vector largely rewritten in while keeping its appearance Several legacy skins were removed in the as the burden of supporting them became too heavy to bear Those in etc for skin dependent CSS etc for skin dependent JavaScript These can also be customised on a per user by etc This feature has led to a wide variety of user styles becoming that gallery is a good place to ending in php
Definition: skin.txt:62
$fname
if(!defined( 'MEDIAWIKI')) $fname
This file is not a valid entry point, perform no further processing unless MEDIAWIKI is defined.
Definition: Setup.php:35
ExportDemoTest\testExportDemo
testExportDemo()
Definition: ExportDemoTest.php:12
$version
$version
Definition: parserTests.php:86
ExportDemoTest
Test making sure the demo export xml is valid.
Definition: ExportDemoTest.php:10