diff options
author | Urban Müller | 2010-01-21 14:23:16 +0000 |
---|---|---|
committer | Urban Müller | 2010-01-21 14:23:16 +0000 |
commit | 51f8681507305e535203f861ce1a9243b14d7488 (patch) | |
tree | 88249a137a4e42c814f5574b70451c87575ee7bf /tests/it_xml.t | |
parent | 3b169fe46119eb733e697bdc5506d1d04e2208f8 (diff) | |
download | itools-51f8681507305e535203f861ce1a9243b14d7488.tar.gz itools-51f8681507305e535203f861ce1a9243b14d7488.tar.bz2 itools-51f8681507305e535203f861ce1a9243b14d7488.zip |
tests for it_xml
Diffstat (limited to 'tests/it_xml.t')
-rwxr-xr-x | tests/it_xml.t | 8 |
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()", +); + ?> |