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