Update docs/hooks.txt for ShowSearchHitTitle
[mediawiki.git] / tests / phpunit / docs / ExportDemoTest.php
blob8288cae0f2590bbc280e5d89d9cf1a30da3428be
1 <?php
3 /**
4 * Test making sure the demo export xml is valid.
5 * This is NOT a unit test
7 * @group Dump
8 * @group large
9 */
10 class ExportDemoTest extends DumpTestCase {
12 public function testExportDemo() {
13 $fname = "../../docs/export-demo.xml";
14 $version = WikiExporter::schemaVersion();
15 $dom = new DomDocument();
16 $dom->load( $fname );
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'
25 $this->assertTrue(
26 $dom->schemaValidate( "../../docs/export-" . $version . ".xsd" ),
27 "schemaValidate has found an error"