summaryrefslogtreecommitdiff
path: root/tests/phpunit/includes/XmlTypeCheckTest.php
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2014-03-12 18:12:23 +0100
committerPierre Schmitz <pierre@archlinux.de>2014-03-12 18:12:23 +0100
commitd417de70fcf39e0a7a15ba780b597914d16ca0f7 (patch)
tree06ef8c333473660350b995abc03e18f3f85359eb /tests/phpunit/includes/XmlTypeCheckTest.php
parenta4edbfa031eb4cd72678051f1510afde4f77951e (diff)
Update to MediaWiki 1.22.4
Diffstat (limited to 'tests/phpunit/includes/XmlTypeCheckTest.php')
-rw-r--r--tests/phpunit/includes/XmlTypeCheckTest.php30
1 files changed, 0 insertions, 30 deletions
diff --git a/tests/phpunit/includes/XmlTypeCheckTest.php b/tests/phpunit/includes/XmlTypeCheckTest.php
deleted file mode 100644
index 8d6f1ed7..00000000
--- a/tests/phpunit/includes/XmlTypeCheckTest.php
+++ /dev/null
@@ -1,30 +0,0 @@
-<?php
-/**
- * PHPUnit tests for XMLTypeCheck.
- * @author physikerwelt
- * @group Xml
- * @covers XMLTypeCheck
- */
-class XmlTypeCheckTest extends MediaWikiTestCase {
- const WELL_FORMED_XML = "<root><child /></root>";
- const MAL_FORMED_XML = "<root><child /></error>";
-
- /**
- * @covers XMLTypeCheck::newFromString
- * @covers XMLTypeCheck::getRootElement
- */
- public function testWellFormedXML() {
- $testXML = XmlTypeCheck::newFromString( self::WELL_FORMED_XML );
- $this->assertTrue( $testXML->wellFormed );
- $this->assertEquals( 'root', $testXML->getRootElement() );
- }
-
- /**
- * @covers XMLTypeCheck::newFromString
- */
- public function testMalFormedXML() {
- $testXML = XmlTypeCheck::newFromString( self::MAL_FORMED_XML );
- $this->assertFalse( $testXML->wellFormed );
- }
-
-}