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