JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
added tar.php. metaform working
[wfpl.git] / test / tar_test.php
diff --git a/test/tar_test.php b/test/tar_test.php
new file mode 100644 (file)
index 0000000..59cdf99
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+
+require_once('code/wfpl/tar.php');
+
+# Unfortunately, I don't know how to set the suggested filename for downloads,
+# so you'll have to deal with that yourself.
+make_tar('foo', array(
+       'foo.txt' => 'foo two three four',
+       'README' => 'this is a test...',
+       'Makefile' => 'all: or_nothing'));
+
+?>