Merge branch 'R_2_0'
[m6w6/ext-http] / tests / params015.phpt
diff --git a/tests/params015.phpt b/tests/params015.phpt
new file mode 100644 (file)
index 0000000..ad3948c
--- /dev/null
@@ -0,0 +1,25 @@
+--TEST--
+header params rfc5987 regression
+--SKIPIF--
+<?php
+include "skipif.inc";
+?>
+--FILE--
+<?php
+echo "Test\n";
+$p = new http\Params(["attachment"=>["filename"=>"foo.bar"]]);
+var_dump($p->params);
+var_dump((string)$p);
+?>
+===DONE===
+--EXPECT--
+Test
+array(1) {
+  ["attachment"]=>
+  array(1) {
+    ["filename"]=>
+    string(7) "foo.bar"
+  }
+}
+string(27) "attachment;filename=foo.bar"
+===DONE===