]> git.sesse.net Git - xml-template/blobdiff - php5-swig/structure.php
Add most of the remaining php5-swig tests. Most succeed, but not all.
[xml-template] / php5-swig / structure.php
diff --git a/php5-swig/structure.php b/php5-swig/structure.php
new file mode 100644 (file)
index 0000000..c3a684e
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+
+dl("XML_Template_SWIG.so");
+$doc = process_file('../xml/structure.xml', array(
+       '#outer' => array(
+               array( '#inner' => 'One' ),
+               array( '#inner' => 'Two' ),
+               array( '#inner' => 'Three' ),
+       )
+), true);
+output_to_fd_and_free($doc, 1);
+?>