]> git.sesse.net Git - xml-template/commitdiff
Add clone test for php5-swig. Fails.
authorsgunderson@bigfoot.com <>
Thu, 22 Sep 2011 20:59:32 +0000 (22:59 +0200)
committersgunderson@bigfoot.com <>
Thu, 22 Sep 2011 20:59:32 +0000 (22:59 +0200)
php5-swig/clone.php [new file with mode: 0644]

diff --git a/php5-swig/clone.php b/php5-swig/clone.php
new file mode 100644 (file)
index 0000000..abe0e30
--- /dev/null
@@ -0,0 +1,16 @@
+<?php
+
+dl("XML_Template_SWIG.so");
+$doc = process_file('../xml/clone.xml', array( 
+       'color' => 'blue',
+       '#things' => array(
+               array( 'li' => 'Raindrops on roses' ),
+               array( 'li' => 'Whiskers on kittens' ),
+               array( 'li' => 'Bright copper kettles' ),
+               array( 'li' => 'Warm, woolen mittens' ) 
+       )
+), true);
+output_to_fd_and_free($doc, 1);
+
+?>
+