summaryrefslogtreecommitdiff
path: root/tests/cpp/include/variables/024-get-post.h
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/cpp/include/variables/024-get-post.h
parent8aa33ba24d56e1a631826bac47321a47ad0bb9e2 (diff)
Several tests on superglobals variables
Diffstat (limited to 'tests/cpp/include/variables/024-get-post.h')
-rw-r--r--tests/cpp/include/variables/024-get-post.h38
1 files changed, 38 insertions, 0 deletions
diff --git a/tests/cpp/include/variables/024-get-post.h b/tests/cpp/include/variables/024-get-post.h
new file mode 100644
index 0000000..e615f0f
--- /dev/null
+++ b/tests/cpp/include/variables/024-get-post.h
@@ -0,0 +1,38 @@
+/**
+ *
+ * Test superglobal variables _GET & _POST
+ * 024-get-post.phpt
+ *
+ */
+
+
+
+
+/**
+ * Set up namespace
+ */
+namespace TestVariables {
+
+
+ /*
+ * Test
+ */
+ void get_post(void)
+ {
+ Php::out << "_GET[a] = " << Php::GET["a"] << std::endl;
+ Php::out << "_GET[b] = " << Php::GET["b"] << std::endl;
+ Php::out << "_GET[ar][elm1] = " << Php::GET["ar"]["elm1"] << std::endl;
+ Php::out << "_GET[ar][elm2] = " << Php::GET["ar"]["elm2"] << std::endl;
+
+ Php::out << "_POST[c] = " << Php::POST["c"] << std::endl;
+ Php::out << "_POST[d] = " << Php::POST["d"] << std::endl;
+ Php::out << "_POST[e] = " << Php::POST["e"] << std::endl;
+ Php::out << "_POST[e][0] = " << Php::POST["e"][0] << std::endl;
+ Php::out << "_POST[e][1] = " << Php::POST["e"][1] << std::endl;
+ }
+
+/**
+ * End of namespace
+ */
+}
+