summaryrefslogtreecommitdiff
path: root/t/inc/Xml.t
diff options
context:
space:
mode:
authorPierre Schmitz <pierre@archlinux.de>2010-07-28 11:52:48 +0200
committerPierre Schmitz <pierre@archlinux.de>2010-07-28 11:52:48 +0200
commit222b01f5169f1c7e69762e0e8904c24f78f71882 (patch)
tree8e932e12546bb991357ec48eb1638d1770be7a35 /t/inc/Xml.t
parent00ab76a6b686e98a914afc1975812d2b1aaa7016 (diff)
update to MediaWiki 1.16.0
Diffstat (limited to 't/inc/Xml.t')
-rw-r--r--t/inc/Xml.t56
1 files changed, 0 insertions, 56 deletions
diff --git a/t/inc/Xml.t b/t/inc/Xml.t
deleted file mode 100644
index b7cef881..00000000
--- a/t/inc/Xml.t
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/usr/bin/env php
-<?php
-
-require 't/Test.php';
-
-plan( 8 );
-
-require_ok( 'includes/Sanitizer.php' );
-require_ok( 'includes/Xml.php' );
-
-#
-# element
-#
-
-cmp_ok(
- Xml::element( 'element', null, null ),
- '==',
- '<element>',
- 'Opening element with no attributes'
-);
-
-cmp_ok(
- Xml::element( 'element', null, '' ),
- '==',
- '<element />',
- 'Terminated empty element'
-);
-
-cmp_ok(
- Xml::element( 'element', null, 'hello <there> you & you' ),
- '==',
- '<element>hello &lt;there&gt; you &amp; you</element>',
- 'Element with no attributes and content that needs escaping'
-);
-
-cmp_ok(
- Xml::element( 'element', array( 'key' => 'value', '<>' => '<>' ), null ),
- '==',
- '<element key="value" <>="&lt;&gt;">',
- 'Element attributes, keys are not escaped'
-);
-
-#
-# open/close element
-#
-
-cmp_ok(
- Xml::openElement( 'element', array( 'k' => 'v' ) ),
- '==',
- '<element k="v">',
- 'openElement() shortcut'
-);
-
-cmp_ok( Xml::closeElement( 'element' ), '==', '</element>', 'closeElement() shortcut' );
-
-/* vim: set filetype=php: */