]> git.sesse.net Git - xml-template/blobdiff - php5-swig/attribute-empty.php
Add most of the remaining php5-swig tests. Most succeed, but not all.
[xml-template] / php5-swig / attribute-empty.php
diff --git a/php5-swig/attribute-empty.php b/php5-swig/attribute-empty.php
new file mode 100644 (file)
index 0000000..5a33f63
--- /dev/null
@@ -0,0 +1,13 @@
+<?php
+
+dl("XML_Template_SWIG.so");
+
+# NULL values are ignored, but having one helps pointing out that
+# the array given is non-associative
+
+$doc = process_file('../xml/clone.xml', array(
+       'color' => 'blue',
+       '#things' => array(NULL)
+), true);
+output_to_fd_and_free($doc, 1);
+?>