4 * Test making sure the demo export xml is valid.
5 * This is NOT a unit test
11 class ExportDemoTest
extends DumpTestCase
{
13 public function testExportDemo() {
14 $fname = "../../docs/export-demo.xml";
15 $version = WikiExporter
::schemaVersion();
16 $dom = new DomDocument();
19 // Ensure, the demo is for the current version
21 $dom->documentElement
->getAttribute( 'version' ),
23 'export-demo.xml should have the current version'
27 $dom->schemaValidate( "../../docs/export-" . $version . ".xsd" ),
28 "schemaValidate has found an error"