summaryrefslogtreecommitdiff
path: root/tests/php/phpt/variables/024-get-post.phpt
diff options
context:
space:
mode:
authorEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-14 20:53:41 +0200
committerEmiel Bruijntjes <emiel.bruijntjes@copernica.com>2014-04-14 20:53:41 +0200
commita7aa0760a01857606ea67c5d8c63df39e0274952 (patch)
tree5a6c03c700125f06de81074774093620a4e9b2f1 /tests/php/phpt/variables/024-get-post.phpt
parent6b5506dfe7b0f5ac9ce923c1d9cdd2ebc4c72a7c (diff)
parentea65bafff940dac23c52fc307b9a2e552b983102 (diff)
Merge pull request #83 from valmat/tests
New tests
Diffstat (limited to 'tests/php/phpt/variables/024-get-post.phpt')
-rw-r--r--tests/php/phpt/variables/024-get-post.phpt26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/php/phpt/variables/024-get-post.phpt b/tests/php/phpt/variables/024-get-post.phpt
new file mode 100644
index 0000000..9ac1243
--- /dev/null
+++ b/tests/php/phpt/variables/024-get-post.phpt
@@ -0,0 +1,26 @@
+--TEST--
+test get and post
+--SKIPIF--
+<?php if (!extension_loaded("extension_for_tests")) print "skip"; ?>
+--GET--
+a=<b>test</b>&b=http://phpcpp.com&ar[elm1]=1234&ar[elm2]=0660&a=0234
+--POST--
+c=<p>string</p>&d=12345.7&e[]=e1&e[]=e2
+--FILEEOF--
+<?php
+
+
+TestVariables\get_post();
+
+--EXPECTF--
+_GET[a] = 0234
+_GET[b] = http://phpcpp.com
+_GET[ar][elm1] = 1234
+_GET[ar][elm2] = 0660
+_POST[c] = <p>string</p>
+_POST[d] = 12345.7
+
+Notice: Array to string conversion in %s/024-get-post.php on line %d
+_POST[e] = Array
+_POST[e][0] = e1
+_POST[e][1] = e2 \ No newline at end of file