summaryrefslogtreecommitdiff
path: root/tests/php/phpt/variables/026-post-raw2.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'tests/php/phpt/variables/026-post-raw2.phpt')
-rw-r--r--tests/php/phpt/variables/026-post-raw2.phpt38
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/php/phpt/variables/026-post-raw2.phpt b/tests/php/phpt/variables/026-post-raw2.phpt
new file mode 100644
index 0000000..4bee44c
--- /dev/null
+++ b/tests/php/phpt/variables/026-post-raw2.phpt
@@ -0,0 +1,38 @@
+--TEST--
+Post files
+--DESCRIPTION--
+Simulates the file upload method post
+test post raw #2
+--SKIPIF--
+<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
+--POST_RAW--
+Content-type: multipart/form-data, boundary=AaB03x
+
+--AaB03x
+content-disposition: form-data; name="flnm[]"; filename="file1.txt"
+Content-Type: text/plain
+
+abcdef123456789
+--AaB03x
+content-disposition: form-data; name="flnm[]"; filename="file2.txt"
+Content-Type: text/plain
+
+«£¥§©®°±¶Я⅓⅘⅞Ⅻↆ❄❅❆⚑⚐⌛⌚〰»
+--AaB03x
+--FILEEOF--
+<?php
+
+
+TestVariables\post_raw2();
+
+--EXPECTF--
+name1 : file1.txt
+name2 : file2.txt
+type1 : text/plain
+type2 : text/plain
+error1 : 0
+error2 : 0
+size1 : 15
+size2 : 61
+content1 : abcdef123456789
+content2 : «£¥§©®°±¶Я⅓⅘⅞Ⅻↆ❄❅❆⚑⚐⌛⌚〰» \ No newline at end of file