]> git.sesse.net Git - xml-template/blobdiff - php5-swig/attribute3.php
Add most of the remaining php5-swig tests. Most succeed, but not all.
[xml-template] / php5-swig / attribute3.php
diff --git a/php5-swig/attribute3.php b/php5-swig/attribute3.php
new file mode 100644 (file)
index 0000000..8b84e7d
--- /dev/null
@@ -0,0 +1,15 @@
+<?php
+
+dl("XML_Template_SWIG.so");
+$doc = process_file('../xml/clone.xml', array(
+       'color' => 'blue',
+       '#things' => XML_Template_alternate('li/class', array(
+               array( 'li' => 'Raindrops on roses' ),
+               array( 'li' => 'Whiskers on kittens' ),
+               NULL,
+               array( 'li' => 'Bright copper kettles' ),
+               array( 'li' => 'Warm, woolen mittens' ),
+       ), array('odd', 'even'))
+), true);
+output_to_fd_and_free($doc, 1);
+?>