summaryrefslogtreecommitdiff
path: root/tests/php/phpt/variables/026-post-raw2.phpt
diff options
context:
space:
mode:
authorvalmat <ufabiz@gmail.com>2014-04-14 21:23:11 +0600
committervalmat <ufabiz@gmail.com>2014-04-14 21:23:11 +0600
commitea65bafff940dac23c52fc307b9a2e552b983102 (patch)
tree5a6c03c700125f06de81074774093620a4e9b2f1 /tests/php/phpt/variables/026-post-raw2.phpt
parent8aa33ba24d56e1a631826bac47321a47ad0bb9e2 (diff)
Several tests on superglobals variables
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