summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorUrban Müller2010-01-21 14:23:16 +0000
committerUrban Müller2010-01-21 14:23:16 +0000
commit51f8681507305e535203f861ce1a9243b14d7488 (patch)
tree88249a137a4e42c814f5574b70451c87575ee7bf /tests
parent3b169fe46119eb733e697bdc5506d1d04e2208f8 (diff)
downloaditools-51f8681507305e535203f861ce1a9243b14d7488.tar.gz
itools-51f8681507305e535203f861ce1a9243b14d7488.tar.bz2
itools-51f8681507305e535203f861ce1a9243b14d7488.zip
tests for it_xml
Diffstat (limited to 'tests')
-rwxr-xr-xtests/it_xml.t8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/it_xml.t b/tests/it_xml.t
index 7e3a3cf..d805d8d 100755
--- a/tests/it_xml.t
+++ b/tests/it_xml.t
@@ -101,4 +101,12 @@ match(
'my'
);
+$x = new foo("<foo></foo>", 'prefix' => "test");
+$x->set('gna' => 42, 'bar' => array('baz' => array("qux", "quux")));
+match(
+ $x->to_xml(),
+ 'foo Object ( [gna] => gna Object ( [val] => 42 ) [bar] => bar Object ( [baz] => Array ( [0] => baz Object ( [val] => qux ) [1] => baz Object ( [val] => quux ) ) ) ) ',
+ "Method set()",
+);
+
?>